]> git.pld-linux.org Git - packages/wxWidgets.git/blame - wxWidgets-format.patch
- more (workarounds only this time)
[packages/wxWidgets.git] / wxWidgets-format.patch
CommitLineData
c885e705
JB
1--- wxWidgets-2.8.12/src/common/appbase.cpp.orig 2011-03-22 12:59:40.000000000 +0100
2+++ wxWidgets-2.8.12/src/common/appbase.cpp 2012-09-30 08:02:00.981833952 +0200
3@@ -424,7 +424,7 @@
4 msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."),
5 lib.c_str(), progName.c_str(), prog.c_str());
6
7- wxLogFatalError(msg.c_str());
8+ wxLogFatalError("%s", msg.c_str());
9
10 // normally wxLogFatalError doesn't return
11 return false;
b44bd5fb
JB
12--- wxWidgets-2.8.12/src/common/file.cpp.orig 2011-03-22 12:59:40.000000000 +0100
13+++ wxWidgets-2.8.12/src/common/file.cpp 2012-09-30 08:19:02.785145988 +0200
14@@ -513,7 +513,7 @@
15 if ( chmod( (const char*) m_strTemp.fn_str(), mode) == -1 )
16 {
17 #ifndef __OS2__
18- wxLogSysError(_("Failed to set temporary file permissions"));
19+ wxLogSysError("%s", _("Failed to set temporary file permissions"));
20 #endif
21 }
22 #endif // Unix
23--- wxWidgets-2.8.12/src/common/fileconf.cpp.orig 2011-03-22 12:59:41.000000000 +0100
24+++ wxWidgets-2.8.12/src/common/fileconf.cpp 2012-09-30 08:20:45.761810510 +0200
25@@ -508,7 +508,7 @@
26
27 if ( err != wxSTREAM_NO_ERROR && err != wxSTREAM_EOF )
28 {
29- wxLogError(_("Error reading config options."));
30+ wxLogError("%s", _("Error reading config options."));
31 break;
32 }
33 }
34@@ -1043,7 +1043,7 @@
35
36 if ( !file.IsOpened() )
37 {
38- wxLogError(_("can't open user configuration file."));
39+ wxLogError("%s", _("can't open user configuration file."));
40 return false;
41 }
42
43@@ -1057,13 +1057,13 @@
44
45 if ( !file.Write(filetext, *m_conv) )
46 {
47- wxLogError(_("can't write user configuration file."));
48+ wxLogError("%s", _("can't write user configuration file."));
49 return false;
50 }
51
52 if ( !file.Commit() )
53 {
54- wxLogError(_("Failed to update user configuration file."));
55+ wxLogError("%s", _("Failed to update user configuration file."));
56
57 return false;
58 }
59@@ -1090,7 +1090,7 @@
60 wxCharBuffer buf(line.mb_str(conv));
61 if ( !os.Write(buf, strlen(buf)) )
62 {
63- wxLogError(_("Error saving user configuration data."));
64+ wxLogError("%s", _("Error saving user configuration data."));
65
66 return false;
67 }
This page took 0.049257 seconds and 4 git commands to generate.