From: Naffanya Date: Tue, 12 Nov 2013 16:31:13 +0000 (+0200) Subject: Correcting error data transfer in method GetParamValue X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/b4e3971acd4927a3409a5a5433a326e6462ceeae?hp=102a98fb1218ebee228837b895d7132e7d2628ec Correcting error data transfer in method GetParamValue --- diff --git a/include/stg/user_property.h b/include/stg/user_property.h index 567df9fa..474eba6a 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -26,6 +26,7 @@ $Author: faust $ extern volatile time_t stgTime; //----------------------------------------------------------------------------- +//template class USER_PROPERTY_BASE { public: virtual std::string ToString() const = 0; @@ -123,7 +124,7 @@ private: USER_STAT stat; USER_CONF conf; - std::map & properties; + std::map & properties; public: USER_PROPERTIES(const std::string & sd); diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 35ec6efb..08087883 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1482,7 +1482,7 @@ if (name == "id") } if (name == "login") return login; if (name == "ip") return currIP.ToString(); -return property.GetPropertyValue(&name); +return property.GetPropertyValue(name); //if (name == "freeMb") return property.freeMb.ToString(); //if (name == "passive") return property.passive.ToString(); //if (name == "disabled") return property.disabled.ToString();