From: Naffanya Date: Tue, 12 Nov 2013 23:57:01 +0000 (+0200) Subject: All right in GetParamValue and GetPropertyValue X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/53407602cc91f2442d0f28575aa366f9c7159ae3 All right in GetParamValue and GetPropertyValue --- diff --git a/include/stg/user_property.h b/include/stg/user_property.h index 474eba6a..6eb17666 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -33,7 +33,7 @@ public: }; //----------------------------------------------------------------------------- template -class USER_PROPERTY : USER_PROPERTY_BASE { +class USER_PROPERTY : public USER_PROPERTY_BASE { public: USER_PROPERTY(varT & val); virtual ~USER_PROPERTY(); @@ -124,7 +124,7 @@ private: USER_STAT stat; USER_CONF conf; - std::map & properties; + std::map properties; public: USER_PROPERTIES(const std::string & sd); @@ -390,7 +390,7 @@ else inline std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const { -std::map::iterator it = properties.find(name); +std::map::const_iterator it = properties.find(name); if (it == properties.end()) return ""; return it->second->ToString();