X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/31b24cededa8b07468cb5e1c49b2a208fe19173e..67eb91cd2fafdf89ba670706e684ab0cd74ae513:/include/stg/user_property.h diff --git a/include/stg/user_property.h b/include/stg/user_property.h index 7d68e734..7c0f4da1 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -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 cash; USER_PROPERTY_LOGGED 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(); } //------------------------------------------------------------------------- //-------------------------------------------------------------------------