X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5487ff0f501619e1b87e8a1f2c03bcc4a87ef375..e0954e729dabaad5603d9970d123d6b96ed73463:/src/common/string.cpp?ds=sidebyside diff --git a/src/common/string.cpp b/src/common/string.cpp index 5d080e9129..34453a87c3 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1617,9 +1617,6 @@ static int DoStringPrintfV(wxString& str, int wxString::PrintfV(const wxString& format, va_list argptr) { - va_list argcopy; - wxVaCopy(argcopy, argptr); - #if wxUSE_UNICODE_UTF8 #if wxUSE_STL_BASED_WXSTRING typedef wxStringTypeBuffer Utf8Buffer; @@ -1629,16 +1626,16 @@ int wxString::PrintfV(const wxString& format, va_list argptr) #endif #if wxUSE_UTF8_LOCALE_ONLY - return DoStringPrintfV(*this, format, argcopy); + return DoStringPrintfV(*this, format, argptr); #else #if wxUSE_UNICODE_UTF8 if ( wxLocaleIsUtf8 ) - return DoStringPrintfV(*this, format, argcopy); + return DoStringPrintfV(*this, format, argptr); else // wxChar* version - return DoStringPrintfV(*this, format, argcopy); + return DoStringPrintfV(*this, format, argptr); #else - return DoStringPrintfV(*this, format, argcopy); + return DoStringPrintfV(*this, format, argptr); #endif // UTF8/WCHAR #endif }