wx3.0: clang complains about support of reference in varargs

This commit is contained in:
Gregory Hainaut 2014-08-01 22:42:00 +02:00
parent 86152668c3
commit e99540554a
5 changed files with 17 additions and 17 deletions

View File

@ -122,10 +122,10 @@ struct IConsoleWriter
bool Warning( const wxChar* fmt, ... ) const;
#if wxMAJOR_VERSION >= 3
bool WriteLn( ConsoleColors color, const wxString& fmt, ... ) const;
bool WriteLn( const wxString& fmt, ... ) const;
bool Error( const wxString& fmt, ... ) const;
bool Warning( const wxString& fmt, ... ) const;
bool WriteLn( ConsoleColors color, const wxString fmt, ... ) const;
bool WriteLn( const wxString fmt, ... ) const;
bool Error( const wxString fmt, ... ) const;
bool Warning( const wxString fmt, ... ) const;
#endif
};
@ -164,10 +164,10 @@ struct NullConsoleWriter
bool Warning( const wxChar* fmt, ... ) const { return false; }
#if wxMAJOR_VERSION >= 3
bool WriteLn( ConsoleColors color, const wxString& fmt, ... ) const { return false; }
bool WriteLn( const wxString& fmt, ... ) const { return false; }
bool Error( const wxString& fmt, ... ) const { return false; }
bool Warning( const wxString& fmt, ... ) const { return false; }
bool WriteLn( ConsoleColors color, const wxString fmt, ... ) const { return false; }
bool WriteLn( const wxString fmt, ... ) const { return false; }
bool Error( const wxString fmt, ... ) const { return false; }
bool Warning( const wxString fmt, ... ) const { return false; }
#endif
};

View File

@ -195,7 +195,7 @@ public:
FastFormatUnicode& Write( const char* fmt, ... );
FastFormatUnicode& Write( const wxChar* fmt, ... );
#if wxMAJOR_VERSION >= 3
FastFormatUnicode& Write( const wxString& fmt, ... );
FastFormatUnicode& Write( const wxString fmt, ... );
#endif
FastFormatUnicode& WriteV( const char* fmt, va_list argptr );
FastFormatUnicode& WriteV( const wxChar* fmt, va_list argptr );

View File

@ -194,7 +194,7 @@ public:
}
#if wxMAJOR_VERSION >= 3
bool Write( const wxString& fmt, ... ) const
bool Write( const wxString fmt, ... ) const
{
va_list list;
va_start( list, fmt );
@ -240,7 +240,7 @@ public:
}
#if wxMAJOR_VERSION >= 3
bool Warn( const wxString& fmt, ... ) const
bool Warn( const wxString fmt, ... ) const
{
va_list list;
va_start( list, fmt );
@ -264,7 +264,7 @@ public:
}
#if wxMAJOR_VERSION >= 3
bool Error( const wxString& fmt, ... ) const
bool Error( const wxString fmt, ... ) const
{
va_list list;
va_start( list, fmt );

View File

@ -472,7 +472,7 @@ bool IConsoleWriter::Warning( const wxChar* fmt, ... ) const
// --------------------------------------------------------------------------------------
// Write Variants - Unknown style
// --------------------------------------------------------------------------------------
bool IConsoleWriter::WriteLn( const wxString& fmt, ... ) const
bool IConsoleWriter::WriteLn( const wxString fmt, ... ) const
{
va_list args;
va_start(args,fmt);
@ -482,7 +482,7 @@ bool IConsoleWriter::WriteLn( const wxString& fmt, ... ) const
return false;
}
bool IConsoleWriter::WriteLn( ConsoleColors color, const wxString& fmt, ... ) const
bool IConsoleWriter::WriteLn( ConsoleColors color, const wxString fmt, ... ) const
{
va_list args;
va_start(args,fmt);
@ -493,7 +493,7 @@ bool IConsoleWriter::WriteLn( ConsoleColors color, const wxString& fmt, ... ) co
return false;
}
bool IConsoleWriter::Error( const wxString& fmt, ... ) const
bool IConsoleWriter::Error( const wxString fmt, ... ) const
{
va_list args;
va_start(args,fmt);
@ -504,7 +504,7 @@ bool IConsoleWriter::Error( const wxString& fmt, ... ) const
return false;
}
bool IConsoleWriter::Warning( const wxString& fmt, ... ) const
bool IConsoleWriter::Warning( const wxString fmt, ... ) const
{
va_list args;
va_start(args,fmt);

View File

@ -296,7 +296,7 @@ FastFormatUnicode& FastFormatUnicode::Write( const wxChar* fmt, ... )
}
#if wxMAJOR_VERSION >= 3
FastFormatUnicode& FastFormatUnicode::Write( const wxString& fmt, ... )
FastFormatUnicode& FastFormatUnicode::Write( const wxString fmt, ... )
{
va_list list;
va_start(list, fmt);