]> git.stg.codes - stg.git/commitdiff
New error in GetPropertyValue
authorNaffanya <naffanya@naffanya.(none)>
Mon, 28 Oct 2013 18:10:14 +0000 (20:10 +0200)
committerNaffanya <naffanya@naffanya.(none)>
Mon, 28 Oct 2013 18:10:14 +0000 (20:10 +0200)
include/stg/user_property.h
projects/stargazer/user_impl.cpp

index a4547398d7782dd5cdf41cd4105ea0005bc12c56..567df9fa0d27164f047b0e887c6a19756b78f6f1 100644 (file)
@@ -386,6 +386,7 @@ else
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------
+inline
 std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const
 {
 std::map<std::string, USER_PROPERTY_BASE*>::iterator it = properties.find(name);
 std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const
 {
 std::map<std::string, USER_PROPERTY_BASE*>::iterator it = properties.find(name);
index b2ac841f96c5d43d4221fe319985a1d757d54a4b..35ec6efb5aa0c28108239af668077de1add91821 100644 (file)
@@ -1474,15 +1474,15 @@ while (it != messages.end())
 //-----------------------------------------------------------------------------
 std::string USER_IMPL::GetParamValue(const std::string & name) const
 {
 //-----------------------------------------------------------------------------
 std::string USER_IMPL::GetParamValue(const std::string & name) const
 {
-    if (name == "id")
+if (name == "id")
     {
     std::stringstream stream;
     stream << id;
     return stream.str();;
     }
     {
     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();
 //if (name == "freeMb")       return property.freeMb.ToString();
 //if (name == "passive")      return property.passive.ToString();
 //if (name == "disabled")     return property.disabled.ToString();