From: Maxim Mamontov Date: Mon, 4 Apr 2011 18:26:31 +0000 (+0300) Subject: Pass property name via const referense instead of value X-Git-Tag: 2.407-rc3~93 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/ffe61a24573ad5257bd6e372dc1d4d57ddf110a6?hp=3379c37a2201e45d840b26ff78c12706ae1c7311 Pass property name via const referense instead of value --- diff --git a/include/user_property.h b/include/user_property.h index 3075d8f9..78e5675a 100644 --- a/include/user_property.h +++ b/include/user_property.h @@ -62,7 +62,7 @@ template class USER_PROPERTY_LOGGED: public USER_PROPERTY { 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 inline USER_PROPERTY_LOGGED::USER_PROPERTY_LOGGED(varT & val, - std::string n, + const std::string & n, bool isPass, bool isSt, STG_LOGGER & logger,