summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2005-06-09 17:58:26 +0000
committerTaybin Rutkin <taybin@taybin.com>2005-06-09 17:58:26 +0000
commit45866a0ab0ad66169f3e9ea111ede017a80fb3b5 (patch)
tree1a463edf35b2b3fb65020f4067dfcb180dc072a8 /libs
parent5e6d6e509686e62e842398b3c1936f77d6438566 (diff)
Added virtual destructors. Thank you gcc4.
git-svn-id: svn://localhost/trunk/ardour2@15 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/cassowary/cassowary/ClReader.h3
-rw-r--r--libs/cassowary/cassowary/ClVariable.h3
-rw-r--r--libs/soundtouch/FIFOSamplePipe.h1
3 files changed, 7 insertions, 0 deletions
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<const string &,ClVariable *> {
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!