Salome HOME
add/delete user
[modules/gde.git] / projects / GDE_API_CPP / api / src / CommandResultTO.cpp
index a225786f7309341e97477f3f9cfdd3bc35cc90c1..7486e27cb0db7a930ac02011686edb060129d392 100644 (file)
@@ -7,9 +7,8 @@ gde::CommandResultTO::CommandResultTO(const CommandResultTO& cto)
 }
 
 gde::CommandResultTO
-gde::CommandResultTO::fromJson(std::string json)
+gde::CommandResultTO::fromJson(const std::string& json)
 {
-  std::cout << "CommandResultTO: " << json << std::endl;
   Poco::JSON::Object::Ptr object = JsonFormatter::parse(json);
   int code = JsonFormatter::extract<int>(object, "code");
   std::string message = JsonFormatter::extract<std::string>(object, "message");
@@ -18,7 +17,7 @@ gde::CommandResultTO::fromJson(std::string json)
 }
 
 std::string
-gde::CommandResultTO::toJson()
+gde::CommandResultTO::toJson() const
 {
   Poco::JSON::Object obj;
   obj.set("code", Poco::Dynamic::Var(_code));