mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10152] Useless use 'std::string' for temporary store 'char const*'
This commit is contained in:
parent
091b69500d
commit
dbd0cec336
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue