]> git.stg.codes - stg.git/blobdiff - include/stg/user_property.h
Rename parameter's names
[stg.git] / include / stg / user_property.h
index 7d68e73410fc502ecf5ef8831dd4d7c090b474ba..7c0f4da15dd4554e325f1f03d2f221f4823189ab 100644 (file)
@@ -138,7 +138,7 @@ public:
     void SetProperties(const USER_PROPERTIES & p) { stat = p.stat; conf = p.conf; }
 
     std::string GetPropertyValue(const std::string & name) const;
-    bool                  Exists(const std::string & name) const;
+    bool Exists(const std::string & name) const;
 
     USER_PROPERTY_LOGGED<double>            cash;
     USER_PROPERTY_LOGGED<DIR_TRAFF>         up;
@@ -400,8 +400,7 @@ return it->second->ToString();
 inline
 bool USER_PROPERTIES::Exists(const std::string & name) const
 {
-if (properties.find(name)!=properties.end()) return true;
-return false;
+return properties.find(name) != properties.end();
 }
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------