diff --git a/include/wx/string.h b/include/wx/string.h index 3beb74b7dd..a8abf00549 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -2212,7 +2212,7 @@ public: // returns the string containing the result of Printf() to it template - static wxString Format(const wxString& format, Targs... args) + static wxString Format(const wxFormatString& format, Targs... args) { wxString s; s.Printf(format, args...); @@ -2241,7 +2241,7 @@ public: // use Printf() template - int sprintf(const wxString& format, Targs... args) + int sprintf(const wxFormatString& format, Targs... args) { return Printf(format, args...); }