Core/Misc: reduced amount of string memory allocations (Step II)
This commit is contained in:
1 parent
013fb1f4d9
commit
9fbc4c0ae2
35 files changed
+160
-163
No files matched your search
@@ -604,14 +604,14 @@ void WorldSession::HandleChannelDeclineInvite(WorldPacket &recvPacket)
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "Opcode %u", recvPacket.GetOpcode());
|
||||
}
|
||||
|
||||
void WorldSession::SendPlayerNotFoundNotice(std::string name)
|
||||
void WorldSession::SendPlayerNotFoundNotice(std::string const& name)
|
||||
{
|
||||
WorldPacket data(SMSG_CHAT_PLAYER_NOT_FOUND, name.size()+1);
|
||||
data << name;
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
||||
void WorldSession::SendPlayerAmbiguousNotice(std::string name)
|
||||
void WorldSession::SendPlayerAmbiguousNotice(std::string const& name)
|
||||
{
|
||||
WorldPacket data(SMSG_CHAT_PLAYER_AMBIGUOUS, name.size()+1);
|
||||
data << name;
|
||||
|
||||
Reference in new issue
Block a user