Format string mayhemamule-svn-r10290
commit50664544a36dfcd81534ba98c2e6740a4d961e73
authorupstream svn <svn@amule.org>
Mon, 20 Sep 2010 20:54:03 +0000 (20 20:54 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Tue, 21 Sep 2010 08:13:19 +0000 (21 08:13 +0000)
treeefc7c17707ed8bf6c1f4a30440467dd0a40a25e7
parent8a816aae936ae6b4863a2f2503d0d9215e24f063
Format string mayhem

wxString::Format is not type safe, that's why CFormat was invented.

After getting two Format string crashes with wx 2.9 64 bit (which is kind of
sensitive regarding the matter) just opening/closing the app I had enough and
swept out almost all wxString::Format calls, further cleaning up some format
strings in the process. Most were innocent enough, but there were several
instances of passing 64 bit ints to %u.

Also CFormat(wxT("%c")) % ('A' + 5) now works as it should (allowing pass of
an int instead of a wxChar to %c now).
69 files changed:
.svn-revision
src/BaseClient.cpp
src/ChatSelector.cpp
src/ClientCreditsList.cpp
src/ClientDetailDialog.cpp
src/ClientList.cpp
src/ClientTCPSocket.cpp
src/ClientUDPSocket.cpp
src/CommentDialogLst.cpp
src/DirectoryTreeCtrl.cpp
src/DownloadClient.cpp
src/DownloadListCtrl.cpp
src/DownloadQueue.cpp
src/ExternalConn.cpp
src/FileDetailDialog.cpp
src/GenericClientListCtrl.cpp
src/KadDlg.cpp
src/KnownFile.cpp
src/KnownFileList.cpp
src/MuleTrayIcon.cpp
src/MuleUDPSocket.cpp
src/NetworkFunctions.h
src/OtherFunctions.cpp
src/PartFile.cpp
src/PartFileConvert.cpp
src/PartFileConvertDlg.cpp
src/Preferences.cpp
src/PrefsUnifiedDlg.cpp
src/SHAHashSet.cpp
src/SearchDlg.cpp
src/SearchList.cpp
src/SearchListCtrl.cpp
src/Server.cpp
src/ServerConnect.cpp
src/ServerList.cpp
src/ServerListCtrl.cpp
src/ServerSocket.cpp
src/ServerUDPSocket.cpp
src/ServerWnd.cpp
src/SharedFileList.cpp
src/SharedFilesCtrl.cpp
src/StatTree.cpp
src/Statistics.cpp
src/StatisticsDlg.cpp
src/Tag.cpp
src/TextClient.cpp
src/ThreadTasks.cpp
src/TransferWnd.cpp
src/amule-gui.cpp
src/amule.cpp
src/amuleDlg.cpp
src/amuled.cpp
src/kademlia/kademlia/Entry.cpp
src/kademlia/kademlia/Indexed.cpp
src/kademlia/kademlia/Kademlia.cpp
src/kademlia/kademlia/Prefs.cpp
src/kademlia/kademlia/Search.cpp
src/kademlia/kademlia/UDPFirewallTester.cpp
src/kademlia/net/KademliaUDPListener.cpp
src/kademlia/net/PacketTracking.cpp
src/kademlia/routing/RoutingZone.cpp
src/kademlia/utils/UInt128.cpp
src/libs/common/FileFunctions.cpp
src/libs/common/Format.cpp
src/libs/common/Format.h
src/libs/common/MD5Sum.cpp
src/libs/common/MuleDebug.cpp
src/libs/ec/cpp/ECSpecialTags.cpp
src/webserver/src/WebServer.cpp