From 53407602cc91f2442d0f28575aa366f9c7159ae3 Mon Sep 17 00:00:00 2001 From: Naffanya Date: Wed, 13 Nov 2013 01:57:01 +0200 Subject: [PATCH] All right in GetParamValue and GetPropertyValue --- include/stg/user_property.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.43.2