Corrected wxFormatConverter for strings which need
not get converted. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
768f1af6a2
commit
678d3dd242
@ -566,7 +566,7 @@ class wxFormatConverter
|
||||
public:
|
||||
wxFormatConverter(const wxChar *format);
|
||||
|
||||
operator const wxChar *() const { return m_fmt.c_str(); }
|
||||
operator const wxChar *() const { return m_nCopied ? m_fmtOrig : m_fmt.c_str(); }
|
||||
|
||||
private:
|
||||
// copy another character to the translated format: this function does the
|
||||
@ -777,7 +777,7 @@ int wxPrintf( const wxChar *format, ... ) ATTRIBUTE_PRINTF_2
|
||||
{
|
||||
va_list argptr;
|
||||
va_start(argptr, format);
|
||||
|
||||
|
||||
int ret = vwprintf( wxFormatConverter(format), argptr );
|
||||
|
||||
va_end(argptr);
|
||||
|
Loading…
Reference in New Issue
Block a user