From 102a98fb1218ebee228837b895d7132e7d2628ec Mon Sep 17 00:00:00 2001 From: Naffanya Date: Mon, 28 Oct 2013 20:10:14 +0200 Subject: [PATCH] New error in GetPropertyValue --- include/stg/user_property.h | 1 + projects/stargazer/user_impl.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/stg/user_property.h b/include/stg/user_property.h index a4547398..567df9fa 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -386,6 +386,7 @@ else //------------------------------------------------------------------------- //------------------------------------------------------------------------- //------------------------------------------------------------------------- +inline std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const { std::map::iterator it = properties.find(name); diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index b2ac841f..35ec6efb 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1474,15 +1474,15 @@ while (it != messages.end()) //----------------------------------------------------------------------------- std::string USER_IMPL::GetParamValue(const std::string & name) const { - if (name == "id") +if (name == "id") { std::stringstream stream; stream << id; return stream.str();; } - if (name == "login") return login; - if (name == "ip") return currIP.ToString(); - return properties.GetPropertyValue(&name); +if (name == "login") return login; +if (name == "ip") return currIP.ToString(); +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.43.2