From: Maxim Mamontov Date: Fri, 20 Jun 2014 22:10:48 +0000 (+0300) Subject: Added const version of GetPointer. X-Git-Tag: 2.409~300 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/50175114ceead523f5f1bc64e586302bfdfcc28e Added const version of GetPointer. --- diff --git a/include/stg/user_property.h b/include/stg/user_property.h index 824c668e..20ca6fd8 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -81,6 +81,7 @@ public: virtual ~USER_PROPERTY_LOGGED() {} USER_PROPERTY_LOGGED * GetPointer() throw() { return this; } + const USER_PROPERTY_LOGGED * GetPointer() const throw() { return this; } const varT & Get() const { return USER_PROPERTY::ConstData(); } const std::string & GetName() const { return name; } bool Set(const varT & val,