瀏覽代碼

HPCC-19842 Declare ISecProperty::setValue

Add setValue to the ISecProperty interface. This eliminates the
need to cast to a concrete implementation in order to set a
member, the existence of which is implied by the declared
getValue method.

HPCC-19842 Add override keyword to setValue implementations

Fixed HPCC-19842

Signed-off-by: Tim Klemm <Tim.Klemm@lexisnexisrisk.com>
Tim Klemm 7 年之前
父節點
當前提交
f55807196a

+ 1 - 1
system/security/LdapSecurity/ldapsecurity.ipp

@@ -273,7 +273,7 @@ public:
     virtual void setDescription(const char* description);
     virtual const char* getDescription();
 
-    virtual void setValue(const char* value);
+    virtual void setValue(const char* value) override;
     virtual const char* getValue();
 
     virtual ISecResource * clone();

+ 1 - 1
system/security/shared/SecurityResource.hpp

@@ -99,7 +99,7 @@ public:
         return m_description.str();
     }
 
-    virtual void setValue(const char* Value)
+    virtual void setValue(const char* Value) override
     {
         m_value.clear().append(Value);
     }

+ 1 - 0
system/security/shared/seclib.hpp

@@ -216,6 +216,7 @@ interface ISecAuthenticEvents : extends IInterface
 interface ISecProperty : extends IInterface
 {
     virtual const char * getName() = 0;
+    virtual void setValue(const char * value) = 0;
     virtual const char * getValue() = 0;
 };