From: Taybin Rutkin Date: Thu, 9 Jun 2005 17:58:26 +0000 (+0000) Subject: Added virtual destructors. Thank you gcc4. X-Git-Tag: 2.0beta4~712 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=45866a0ab0ad66169f3e9ea111ede017a80fb3b5;p=ardour.git Added virtual destructors. Thank you gcc4. git-svn-id: svn://localhost/trunk/ardour2@15 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/libs/cassowary/cassowary/ClReader.h b/libs/cassowary/cassowary/ClReader.h index 59369d6ac2..4eef907759 100644 --- a/libs/cassowary/cassowary/ClReader.h +++ b/libs/cassowary/cassowary/ClReader.h @@ -35,6 +35,7 @@ class ClConstraint; class ClVarLookupFunction : public std::unary_function { public: + virtual ~ClVarLookupFunction () {}; virtual ClVariable *operator()(const string &) const { return &clvNil; } }; @@ -50,6 +51,8 @@ public: ClVarLookupInMap(StringToVarMap *pmapVars, bool fAutoCreate) : _pmapVars(pmapVars), _fAutoCreate(fAutoCreate) { } + virtual ~ClVarLookupInMap () {}; + ClVariable *operator()(const string &str) const { if (!_pmapVars) diff --git a/libs/cassowary/cassowary/ClVariable.h b/libs/cassowary/cassowary/ClVariable.h index 03814e5ef2..b046247c67 100644 --- a/libs/cassowary/cassowary/ClVariable.h +++ b/libs/cassowary/cassowary/ClVariable.h @@ -56,6 +56,9 @@ public: : pclv(pcfv) { if (pmapStrPclv) { (*pmapStrPclv)[pcfv->Name()] = *this; } } + // Destructor + virtual ~ClVariable() {}; + /// permit ClVariables to be used as pointers to pclvs ClAbstractVariable *operator->() { return pclv; } const ClAbstractVariable *operator->() const { return pclv; } diff --git a/libs/soundtouch/FIFOSamplePipe.h b/libs/soundtouch/FIFOSamplePipe.h index 9e33363b00..d2d54d5274 100644 --- a/libs/soundtouch/FIFOSamplePipe.h +++ b/libs/soundtouch/FIFOSamplePipe.h @@ -59,6 +59,7 @@ namespace soundtouch class FIFOSamplePipe { public: + virtual ~FIFOSamplePipe () {}; /// Returns a pointer to the beginning of the output samples. /// This function is provided for accessing the output samples directly. /// Please be careful for not to corrupt the book-keeping!