From 43361fc8601b81d00ab8416f699dade2c9419f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 28 Feb 2008 14:39:19 +0000 Subject: [PATCH] * Fixed "missing virtual constructor" warning (which is probably even a correct warning) for AbstractPointerListHelper. (libbe_build.so) * I have had problems with implementing virtual functions inline in the class declaration before, so I implemented the virtual destructor externally. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24168 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/build/libbe/support/PointerList.cpp | 7 +++++++ src/kits/support/PointerList.cpp | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/build/libbe/support/PointerList.cpp b/src/build/libbe/support/PointerList.cpp index 90a5e0a687..d909b829a0 100644 --- a/src/build/libbe/support/PointerList.cpp +++ b/src/build/libbe/support/PointerList.cpp @@ -71,6 +71,7 @@ struct comparator; class AbstractPointerListHelper { public: AbstractPointerListHelper() {}; + virtual ~AbstractPointerListHelper(); /** Returns the index of the item that matches key or @@ -136,6 +137,12 @@ struct comparator : public binary_function }; #endif + +AbstractPointerListHelper::~AbstractPointerListHelper() +{ +} + + void AbstractPointerListHelper::Swap(void **items, int32 i, int32 j) { diff --git a/src/kits/support/PointerList.cpp b/src/kits/support/PointerList.cpp index 4f78bb0361..44ead0ac6a 100644 --- a/src/kits/support/PointerList.cpp +++ b/src/kits/support/PointerList.cpp @@ -72,7 +72,7 @@ struct comparator; class AbstractPointerListHelper { public: AbstractPointerListHelper() {}; - virtual ~AbstractPointerListHelper() {}; + virtual ~AbstractPointerListHelper(); /** Returns the index of the item that matches key or @@ -138,6 +138,12 @@ struct comparator : public binary_function }; #endif + +AbstractPointerListHelper::~AbstractPointerListHelper() +{ +} + + void AbstractPointerListHelper::Swap(void **items, int32 i, int32 j) {