]> git.stg.codes - stg.git/blobdiff - include/user_property.h
Replace postfix decrement operator with prefix
[stg.git] / include / user_property.h
index 402f69fbdc99fe51d2a0c6651ab6d60ce0ce7ca0..78e5675a5f9adc453ae5ac13f8c8e06922630477 100644 (file)
@@ -7,6 +7,8 @@ $Author: faust $
 #ifndef USER_PROPERTY_H
 #define USER_PROPERTY_H
 
+#include <unistd.h> // access
+
 #include <ctime>
 #include <string>
 #include <set>
@@ -60,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,
@@ -257,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,