@@ -651,7 +651,7 @@ void ConnectionManager::processChat(NetChatCommandMsg *msg)
651651 const Player *player = ThePlayerList->findPlayerWithNameKey ( TheNameKeyGenerator->nameToKey ( playerName ) );
652652 if (!player)
653653 {
654- TheInGameUI->message (UnicodeString ( L" %ls" ) , unitext.str ());
654+ TheInGameUI->message (L" %ls" , unitext.str ());
655655 return ;
656656 }
657657
@@ -663,7 +663,7 @@ void ConnectionManager::processChat(NetChatCommandMsg *msg)
663663 {
664664 RGBColor rgb;
665665 rgb.setFromInt (player->getPlayerColor ());
666- TheInGameUI->messageColor (&rgb, UnicodeString ( L" %ls" ) , unitext.str ());
666+ TheInGameUI->messageColor (&rgb, L" %ls" , unitext.str ());
667667
668668 // feedback for received chat messages in-game
669669 AudioEventRTS audioEvent (" GUICommunicatorIncoming" );
@@ -2120,7 +2120,7 @@ UnsignedShort ConnectionManager::sendFileAnnounce(AsciiString path, UnsignedByte
21202120 log.format (L" Not sending file '%hs' to %X" , path.str (), playerMask);
21212121 DEBUG_LOG_LEVEL (DEBUG_LEVEL_NET, (" %ls" , log.str ()));
21222122 if (TheLAN)
2123- TheLAN->OnChat (UnicodeString ( L" sendFile" ) , 0 , log, LANAPI::LANCHAT_SYSTEM);
2123+ TheLAN->OnChat (L" sendFile" , 0 , log, LANAPI::LANCHAT_SYSTEM);
21242124 return 0 ;
21252125 }
21262126
@@ -2158,7 +2158,7 @@ void ConnectionManager::sendFile(AsciiString path, UnsignedByte playerMask, Unsi
21582158 log.format (L" Not sending file '%hs' to %X" , path.str (), playerMask);
21592159 DEBUG_LOG_LEVEL (DEBUG_LEVEL_NET, (" %ls" , log.str ()));
21602160 if (TheLAN)
2161- TheLAN->OnChat (UnicodeString ( L" sendFile" ) , 0 , log, LANAPI::LANCHAT_SYSTEM);
2161+ TheLAN->OnChat (L" sendFile" , 0 , log, LANAPI::LANCHAT_SYSTEM);
21622162 return ;
21632163 }
21642164
0 commit comments