Added virtual destructors. Thank you gcc4.
authorTaybin Rutkin <taybin@taybin.com>
Thu, 9 Jun 2005 17:58:26 +0000 (17:58 +0000)
committerTaybin Rutkin <taybin@taybin.com>
Thu, 9 Jun 2005 17:58:26 +0000 (17:58 +0000)
git-svn-id: svn://localhost/trunk/ardour2@15 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/cassowary/cassowary/ClReader.h
libs/cassowary/cassowary/ClVariable.h
libs/soundtouch/FIFOSamplePipe.h

index 59369d6ac2e3a88cd826c6cea526170c4a1608d8..4eef907759d1ec5fb4cb8960bf60a7de457dee69 100644 (file)
@@ -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)
index 03814e5ef24f85554a1834b39a24be3b68a7dc93..b046247c6742d8bbcf66ad5a9d48461d6097dd84 100644 (file)
@@ -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; }
index 9e33363b0074be9fe1d66320293a5f55fcc18b74..d2d54d5274684c787a082ff6b23988010a00318d 100644 (file)
@@ -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!