From d21645587108181012bc9d822086e10b16730a49 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Fri, 9 Apr 2010 13:54:37 +0000 Subject: 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 --- cpp/src/qpid/acl/AclValidator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp/src') 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& allowed); + virtual ~AclEnumProperty (){}; int getType(){ return AclProperty::ENUM; } virtual bool validate(const std::string& val); virtual std::string allowedValues(); -- cgit v1.2.1