From 02d8b7d400a4c319fc29296aeb89629392b9af9d Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 20 Oct 2016 12:35:24 +0200 Subject: [PATCH] Changed: Simplify toString --- code/ryzom/common/src/game_share/object.cpp | 2 +- code/ryzom/server/src/entities_game_service/admin.cpp | 4 ++-- .../mission_manager/missions_commands.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/ryzom/common/src/game_share/object.cpp b/code/ryzom/common/src/game_share/object.cpp index d3f8856af..45e1a549e 100644 --- a/code/ryzom/common/src/game_share/object.cpp +++ b/code/ryzom/common/src/game_share/object.cpp @@ -894,7 +894,7 @@ void CObjectInteger::inPlaceCopy(const CObjectInteger &src) } -std::string CObjectInteger::doToString() const { return NLMISC::toString("%" NL_I64 "d", _Value); } +std::string CObjectInteger::doToString() const { return NLMISC::toString(_Value); } void CObjectInteger::doSerialize(std::string& out, CSerializeContext& /* context */) const { diff --git a/code/ryzom/server/src/entities_game_service/admin.cpp b/code/ryzom/server/src/entities_game_service/admin.cpp index 5e0ad4efd..585b4c1a8 100644 --- a/code/ryzom/server/src/entities_game_service/admin.cpp +++ b/code/ryzom/server/src/entities_game_service/admin.cpp @@ -1002,7 +1002,7 @@ ENTITY_VARIABLE(Money, "Money") if (get) { - value = toString("%"NL_I64"u", c->getMoney()); + value = toString(c->getMoney()); } else { @@ -1054,7 +1054,7 @@ ENTITY_VARIABLE(MoneyGuild, "MoneyGuild") if (get) { - value = toString("%"NL_I64"u", guild->getMoney()); + value = toString(guild->getMoney()); } else { diff --git a/code/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp b/code/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp index f7cd1b6af..e97043a9d 100644 --- a/code/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp +++ b/code/ryzom/server/src/entities_game_service/mission_manager/missions_commands.cpp @@ -1011,7 +1011,7 @@ NLMISC_COMMAND(getMoney, "get money of player", "") { GET_ACTIVE_CHARACTER - string value = toString("%"NL_I64"u", c->getMoney()); + string value = toString(c->getMoney()); log.displayNL(value.c_str());