From 5190fe2cdac7c259d96619e4686f8543bdc96af4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 13:35:24 +0300 Subject: Improve string usage in other files. --- src/net/eathena/guildhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/guildhandler.cpp') diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index e26a252ab..13c0a1f2e 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -264,7 +264,8 @@ void GuildHandler::chat(int guildId A_UNUSED, const std::string &text) if (!player_node) return; - std::string str = player_node->getName() + " : " + text; + std::string str = std::string(player_node->getName()).append( + " : ").append(text); MessageOut msg(CMSG_GUILD_MESSAGE); msg.writeInt16(static_cast(str.size() + 4)); msg.writeString(str, static_cast(str.length())); -- cgit v1.2.3-70-g09d2