You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2010/04/09 15:54:37 UTC
svn commit: r932416 - /qpid/trunk/qpid/cpp/src/qpid/acl/AclValidator.h
Author: rajith
Date: Fri Apr 9 13:54:37 2010
New Revision: 932416
URL: http://svn.apache.org/viewvc?rev=932416&view=rev
Log:
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.
Modified:
qpid/trunk/qpid/cpp/src/qpid/acl/AclValidator.h
Modified: qpid/trunk/qpid/cpp/src/qpid/acl/AclValidator.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/acl/AclValidator.h?rev=932416&r1=932415&r2=932416&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/acl/AclValidator.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/acl/AclValidator.h Fri Apr 9 13:54:37 2010
@@ -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();
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org