]> git.pld-linux.org Git - packages/wxWidgets.git/blame - wxWidgets-format.patch
- more workarounds
[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 }
8de26838
JB
68--- wxWidgets-2.8.12/src/common/filename.cpp.orig 2011-03-22 12:59:41.000000000 +0100
69+++ wxWidgets-2.8.12/src/common/filename.cpp 2012-09-30 08:26:13.781803673 +0200
70@@ -859,7 +859,7 @@
71
72 if ( path.empty() )
73 {
74- wxLogSysError(_("Failed to create a temporary file name"));
75+ wxLogSysError("%s", _("Failed to create a temporary file name"));
76 }
77 else
78 {
79@@ -894,7 +894,7 @@
80 // fails, though of course it should be protected against
81 // possible infinite looping too.
82
83- wxLogError(_("Failed to open temporary file."));
84+ wxLogError("%s", _("Failed to open temporary file."));
85
86 path.clear();
87 }
84f99935
JB
88--- wxWidgets-2.8.12/src/common/filefn.cpp.orig 2011-03-22 12:59:41.000000000 +0100
89+++ wxWidgets-2.8.12/src/common/filefn.cpp 2012-09-30 09:03:28.965090416 +0200
90@@ -1513,7 +1513,7 @@
91
92 if ( !ok )
93 {
94- wxLogSysError(_("Failed to get the working directory"));
95+ wxLogSysError("%s", _("Failed to get the working directory"));
96
97 // VZ: the old code used to return "." on error which didn't make any
98 // sense at all to me - empty string is a better error indicator
This page took 0.109383 seconds and 4 git commands to generate.