git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ebdf9c
)
Added const version of GetPointer.
author
Maxim Mamontov
<faust.madf@gmail.com>
Fri, 20 Jun 2014 22:10:48 +0000
(
01:10
+0300)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Fri, 20 Jun 2014 22:10:48 +0000
(
01:10
+0300)
include/stg/user_property.h
patch
|
blob
|
history
diff --git
a/include/stg/user_property.h
b/include/stg/user_property.h
index 824c668e4ddc41794b78b61870bca7c02d9b3a2c..20ca6fd8052fe33336a3c66b89292a6da0462239 100644
(file)
--- a/
include/stg/user_property.h
+++ b/
include/stg/user_property.h
@@
-81,6
+81,7
@@
public:
virtual ~USER_PROPERTY_LOGGED() {}
USER_PROPERTY_LOGGED<varT> * GetPointer() throw() { return this; }
+ const USER_PROPERTY_LOGGED<varT> * GetPointer() const throw() { return this; }
const varT & Get() const { return USER_PROPERTY<varT>::ConstData(); }
const std::string & GetName() const { return name; }
bool Set(const varT & val,