From 81ee1d1b101fe803458b442e10360a3e93cda805 Mon Sep 17 00:00:00 2001 From: daco65 Date: Sun, 16 Aug 2009 18:53:38 +0000 Subject: [PATCH] clean up. less memory usage! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4010 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/NetSockets.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Core/DolphinWX/Src/NetSockets.cpp b/Source/Core/DolphinWX/Src/NetSockets.cpp index f5a2374b8f..3f6a607f94 100644 --- a/Source/Core/DolphinWX/Src/NetSockets.cpp +++ b/Source/Core/DolphinWX/Src/NetSockets.cpp @@ -411,11 +411,8 @@ void *ClientSide::Entry() if (value == 0x16) // UDP connection successful { Event->AppendText(_("Connection successful !\n")); - // note by DacoTaco : i hate to do this... - // TODO : make it better. old wxString::Format method crashed for some odd reason - std::string temp = "*Connection established to " + m_hostnick + "(" + m_addr + ")\n*Game is : " + - m_selectedgame + "\n "; - Event->AppendText( wxString::FromAscii( temp.c_str() ) ); + Event->AppendText( wxString::Format( wxT("*Connection established to %s (%s)\n*Game is : %s\n "), + wxString(m_hostnick.c_str(),wxConvUTF8 ) , wxString(m_addr.c_str(),wxConvUTF8 ) , wxString(m_selectedgame.c_str() , wxConvUTF8) )); } else {