X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/341e7d28891d72b0f7aee27ca41d5827d261c67b..599a97e9ab9d9c1fca761d501ef101595e0ae486:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 764d0a41c6..7773d3b552 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1105,14 +1105,15 @@ wxString& wxString::operator<<(double d) /* static */ wxString wxString::Format(const wxChar *pszFormat, ...) { - va_list argptr; - va_start(argptr, pszFormat); + va_list argptr; + va_start(argptr, pszFormat); - wxString s = FormatV(pszFormat, argptr); + wxString s; + s.PrintfV(pszFormat, argptr); - va_end(argptr); + va_end(argptr); - return s; + return s; } /* static */