[10152] Useless use 'std::string' for temporary store 'char const*'

This commit is contained in:
VladimirMangos 2010-07-05 02:09:24 +04:00
parent 091b69500d
commit dbd0cec336
2 changed files with 4 additions and 4 deletions

View file

@ -169,10 +169,10 @@ bool ChatHandler::HandleGMListIngameCommand(const char* /*args*/)
{ {
SendSysMessage(LANG_GMS_ON_SRV); SendSysMessage(LANG_GMS_ON_SRV);
std::string accepts = GetMangosString(LANG_GM_ACCEPTS_WHISPER); char const* accepts = GetMangosString(LANG_GM_ACCEPTS_WHISPER);
std::string not_accept = GetMangosString(LANG_GM_NO_WHISPER); char const* not_accept = GetMangosString(LANG_GM_NO_WHISPER);
for(std::list<std::pair< std::string, bool> >::const_iterator iter = names.begin(); iter != names.end(); ++iter) for(std::list<std::pair< std::string, bool> >::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 else
SendSysMessage(LANG_GMS_NOT_LOGGED); SendSysMessage(LANG_GMS_NOT_LOGGED);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10151" #define REVISION_NR "10152"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__