From b4e3971acd4927a3409a5a5433a326e6462ceeae Mon Sep 17 00:00:00 2001 From: Naffanya Date: Tue, 12 Nov 2013 18:31:13 +0200 Subject: [PATCH] Correcting error data transfer in method GetParamValue --- include/stg/user_property.h | 3 ++- projects/stargazer/user_impl.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.44.2