summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2010-04-09 13:54:37 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2010-04-09 13:54:37 +0000
commitd21645587108181012bc9d822086e10b16730a49 (patch)
tree6a5de1264b626ac6d49e218f09db402a752b1d06 /cpp/src
parent9487cef6ecb398e03b436bb641ca5961da819147 (diff)
downloadqpid-python-d21645587108181012bc9d822086e10b16730a49.tar.gz
Adding virtual destructors.
The virtual dtor warning is not given on fedora 11 but is on rhel5, so I missed it the first time around. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/acl/AclValidator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/acl/AclValidator.h b/cpp/src/qpid/acl/AclValidator.h
index 1176d2e89c..333547649d 100644
--- a/cpp/src/qpid/acl/AclValidator.h
+++ b/cpp/src/qpid/acl/AclValidator.h
@@ -38,6 +38,7 @@ class AclValidator {
enum PropertyType { INT, STRING, ENUM };
public:
+ virtual ~AclProperty(){};
virtual int getType()=0;
virtual bool validate(const std::string& val)=0;
virtual std::string allowedValues()=0;
@@ -49,6 +50,7 @@ class AclValidator {
public:
AclIntProperty(int64_t min,int64_t max);
+ virtual ~AclIntProperty (){};
int getType(){ return AclProperty::INT; }
virtual bool validate(const std::string& val);
virtual std::string allowedValues();
@@ -59,6 +61,7 @@ class AclValidator {
public:
AclEnumProperty(std::vector<std::string>& allowed);
+ virtual ~AclEnumProperty (){};
int getType(){ return AclProperty::ENUM; }
virtual bool validate(const std::string& val);
virtual std::string allowedValues();