freebsd-ports/x11-toolkits/py-wxPython30/files/patch-src_gtk___gdi__wrap.cpp
John Marino 4040163bd6 x11-toolkits/py-wxPython30: Fix c++ code, drop gcc requirement
While here, upgrade from version 3.0.0 to 3.0.2
wxPython30 was obligated to build under c++11 standards, but the code
was not compliant.  It now builds on system clang again.

PR:		199403
Submitted by:	matthew (reztec.cz)
Approved by:	blanket (fixes previous "fix")
2015-04-14 06:43:09 +00:00

20 lines
959 B
C++

--- src/gtk/_gdi_wrap.cpp.orig 2015-04-12 18:02:36 UTC
+++ src/gtk/_gdi_wrap.cpp
@@ -3856,7 +3856,7 @@ const wxString& wxPyLocale::GetSingularS
const wxString& domain) const
{
bool found;
- wxString str( _T("error in translation"));
+ static wxString str( _T("error in translation"));
wxPyBlock_t blocked = wxPyBeginBlockThreads();
if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
PyObject* param1 = wx2PyString(origString);
@@ -3878,7 +3878,7 @@ const wxString& wxPyLocale::GetPluralStr
const wxString& domain) const
{
bool found;
- wxString str( _T("error in translation"));
+ static wxString str( _T("error in translation"));
wxPyBlock_t blocked = wxPyBeginBlockThreads();
if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
PyObject* param1 = wx2PyString(origString);