13
0

Added virtual destructors. Thank you gcc4.

git-svn-id: svn://localhost/trunk/ardour2@15 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Taybin Rutkin 2005-06-09 17:58:26 +00:00
parent 5e6d6e5096
commit 45866a0ab0
3 changed files with 7 additions and 0 deletions

View 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)

View 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; }

View 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!