From dbd0cec336707ed2108bed9fe7838b0b892f27ea Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 5 Jul 2010 02:09:24 +0400 Subject: [PATCH] [10152] Useless use 'std::string' for temporary store 'char const*' --- src/game/Level0.cpp | 6 +++--- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/Level0.cpp b/src/game/Level0.cpp index e3181f8c3..00c6b6ec1 100644 --- a/src/game/Level0.cpp +++ b/src/game/Level0.cpp @@ -169,10 +169,10 @@ bool ChatHandler::HandleGMListIngameCommand(const char* /*args*/) { SendSysMessage(LANG_GMS_ON_SRV); - std::string accepts = GetMangosString(LANG_GM_ACCEPTS_WHISPER); - std::string not_accept = GetMangosString(LANG_GM_NO_WHISPER); + char const* accepts = GetMangosString(LANG_GM_ACCEPTS_WHISPER); + char const* not_accept = GetMangosString(LANG_GM_NO_WHISPER); for(std::list >::const_iterator iter = names.begin(); iter != names.end(); ++iter) - PSendSysMessage("%s - %s", iter->first.c_str(), iter->second ? accepts.c_str() : not_accept.c_str()); + PSendSysMessage("%s - %s", iter->first.c_str(), iter->second ? accepts : not_accept); } else SendSysMessage(LANG_GMS_NOT_LOGGED); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index caf670361..fda19a6d3 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10151" + #define REVISION_NR "10152" #endif // __REVISION_NR_H__