]> git.stg.codes - stg.git/commitdiff
Pass property name via const referense instead of value
authorMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 18:26:31 +0000 (21:26 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 18:26:31 +0000 (21:26 +0300)
include/user_property.h

index 3075d8f9d0a771394944d854c0d5fd435699eaf6..78e5675a5f9adc453ae5ac13f8c8e06922630477 100644 (file)
@@ -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,