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:
3379c37
)
Pass property name via const referense instead of value
author
Maxim Mamontov
<faust.madf@gmail.com>
Mon, 4 Apr 2011 18:26:31 +0000
(21:26 +0300)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Mon, 4 Apr 2011 18:26:31 +0000
(21:26 +0300)
include/user_property.h
patch
|
blob
|
history
diff --git
a/include/user_property.h
b/include/user_property.h
index 3075d8f9d0a771394944d854c0d5fd435699eaf6..78e5675a5f9adc453ae5ac13f8c8e06922630477 100644
(file)
--- a/
include/user_property.h
+++ b/
include/user_property.h
@@
-62,7
+62,7
@@
template<typename varT>
class USER_PROPERTY_LOGGED: public USER_PROPERTY<varT> {
public:
USER_PROPERTY_LOGGED(varT & val,
- const std::string n,
+ const std::string
&
n,
bool isPassword,
bool isStat,
STG_LOGGER & logger,
@@
-259,7
+259,7
@@
afterNotifiers.erase(n);
template <typename varT>
inline
USER_PROPERTY_LOGGED<varT>::USER_PROPERTY_LOGGED(varT & val,
-
std::string
n,
+
const std::string &
n,
bool isPass,
bool isSt,
STG_LOGGER & logger,