summaryrefslogtreecommitdiff
path: root/qpid/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
commite5c466f5310f619f32af50a15909b1d081afd828 (patch)
tree822d92d2cff77dbc6ba158568bbc2c4b05941e69 /qpid/cpp/src
parentf7b7338f798cb9f1ffcbd6b4bec83fd7b08a3e57 (diff)
downloadqpid-python-e5c466f5310f619f32af50a15909b1d081afd828.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@932416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/acl/AclValidator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/acl/AclValidator.h b/qpid/cpp/src/qpid/acl/AclValidator.h
index 1176d2e89c..333547649d 100644
--- a/qpid/cpp/src/qpid/acl/AclValidator.h
+++ b/qpid/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();