X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/cf7325e6b3244c7174424fa71e1972523324a69b..71f9f56c6dee0f8b1e7f6df93a56f95f4974d4d2:/include/stg/user_property.h diff --git a/include/stg/user_property.h b/include/stg/user_property.h index f2421213..da60ff1c 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -121,11 +121,13 @@ class USER_PROPERTIES : private NONCOPYABLE { начале идет закрытая секция * */ +public: + typedef std::map REGISTRY; private: USER_STAT stat; USER_CONF conf; - std::map properties; + REGISTRY properties; public: USER_PROPERTIES(const std::string & sd); @@ -280,7 +282,7 @@ USER_PROPERTY_LOGGED::USER_PROPERTY_LOGGED(varT & val, bool isSt, STG_LOGGER & logger, const std::string & sd, - std::map & properties) + USER_PROPERTIES::REGISTRY & properties) : USER_PROPERTY(val), stgLogger(logger), @@ -392,7 +394,7 @@ else inline std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const { -std::map::const_iterator it = properties.find(ToLower(name)); +REGISTRY::const_iterator it = properties.find(ToLower(name)); if (it == properties.end()) return ""; return it->second->ToString();