mirror of https://github.com/PCSX2/pcsx2.git
wx3.0: clang complains about support of reference in varargs
This commit is contained in:
parent
86152668c3
commit
e99540554a
|
@ -122,10 +122,10 @@ struct IConsoleWriter
|
||||||
bool Warning( const wxChar* fmt, ... ) const;
|
bool Warning( const wxChar* fmt, ... ) const;
|
||||||
|
|
||||||
#if wxMAJOR_VERSION >= 3
|
#if wxMAJOR_VERSION >= 3
|
||||||
bool WriteLn( ConsoleColors color, const wxString& fmt, ... ) const;
|
bool WriteLn( ConsoleColors color, const wxString fmt, ... ) const;
|
||||||
bool WriteLn( const wxString& fmt, ... ) const;
|
bool WriteLn( const wxString fmt, ... ) const;
|
||||||
bool Error( const wxString& fmt, ... ) const;
|
bool Error( const wxString fmt, ... ) const;
|
||||||
bool Warning( const wxString& fmt, ... ) const;
|
bool Warning( const wxString fmt, ... ) const;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -164,10 +164,10 @@ struct NullConsoleWriter
|
||||||
bool Warning( const wxChar* fmt, ... ) const { return false; }
|
bool Warning( const wxChar* fmt, ... ) const { return false; }
|
||||||
|
|
||||||
#if wxMAJOR_VERSION >= 3
|
#if wxMAJOR_VERSION >= 3
|
||||||
bool WriteLn( ConsoleColors color, 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 WriteLn( const wxString fmt, ... ) const { return false; }
|
||||||
bool Error( const wxString& fmt, ... ) const { return false; }
|
bool Error( const wxString fmt, ... ) const { return false; }
|
||||||
bool Warning( const wxString& fmt, ... ) const { return false; }
|
bool Warning( const wxString fmt, ... ) const { return false; }
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -195,7 +195,7 @@ public:
|
||||||
FastFormatUnicode& Write( const char* fmt, ... );
|
FastFormatUnicode& Write( const char* fmt, ... );
|
||||||
FastFormatUnicode& Write( const wxChar* fmt, ... );
|
FastFormatUnicode& Write( const wxChar* fmt, ... );
|
||||||
#if wxMAJOR_VERSION >= 3
|
#if wxMAJOR_VERSION >= 3
|
||||||
FastFormatUnicode& Write( const wxString& fmt, ... );
|
FastFormatUnicode& Write( const wxString fmt, ... );
|
||||||
#endif
|
#endif
|
||||||
FastFormatUnicode& WriteV( const char* fmt, va_list argptr );
|
FastFormatUnicode& WriteV( const char* fmt, va_list argptr );
|
||||||
FastFormatUnicode& WriteV( const wxChar* fmt, va_list argptr );
|
FastFormatUnicode& WriteV( const wxChar* fmt, va_list argptr );
|
||||||
|
|
|
@ -194,7 +194,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxMAJOR_VERSION >= 3
|
#if wxMAJOR_VERSION >= 3
|
||||||
bool Write( const wxString& fmt, ... ) const
|
bool Write( const wxString fmt, ... ) const
|
||||||
{
|
{
|
||||||
va_list list;
|
va_list list;
|
||||||
va_start( list, fmt );
|
va_start( list, fmt );
|
||||||
|
@ -240,7 +240,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxMAJOR_VERSION >= 3
|
#if wxMAJOR_VERSION >= 3
|
||||||
bool Warn( const wxString& fmt, ... ) const
|
bool Warn( const wxString fmt, ... ) const
|
||||||
{
|
{
|
||||||
va_list list;
|
va_list list;
|
||||||
va_start( list, fmt );
|
va_start( list, fmt );
|
||||||
|
@ -264,7 +264,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxMAJOR_VERSION >= 3
|
#if wxMAJOR_VERSION >= 3
|
||||||
bool Error( const wxString& fmt, ... ) const
|
bool Error( const wxString fmt, ... ) const
|
||||||
{
|
{
|
||||||
va_list list;
|
va_list list;
|
||||||
va_start( list, fmt );
|
va_start( list, fmt );
|
||||||
|
|
|
@ -472,7 +472,7 @@ bool IConsoleWriter::Warning( const wxChar* fmt, ... ) const
|
||||||
// --------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------
|
||||||
// Write Variants - Unknown style
|
// Write Variants - Unknown style
|
||||||
// --------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------
|
||||||
bool IConsoleWriter::WriteLn( const wxString& fmt, ... ) const
|
bool IConsoleWriter::WriteLn( const wxString fmt, ... ) const
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args,fmt);
|
va_start(args,fmt);
|
||||||
|
@ -482,7 +482,7 @@ bool IConsoleWriter::WriteLn( const wxString& fmt, ... ) const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IConsoleWriter::WriteLn( ConsoleColors color, const wxString& fmt, ... ) const
|
bool IConsoleWriter::WriteLn( ConsoleColors color, const wxString fmt, ... ) const
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args,fmt);
|
va_start(args,fmt);
|
||||||
|
@ -493,7 +493,7 @@ bool IConsoleWriter::WriteLn( ConsoleColors color, const wxString& fmt, ... ) co
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IConsoleWriter::Error( const wxString& fmt, ... ) const
|
bool IConsoleWriter::Error( const wxString fmt, ... ) const
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args,fmt);
|
va_start(args,fmt);
|
||||||
|
@ -504,7 +504,7 @@ bool IConsoleWriter::Error( const wxString& fmt, ... ) const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IConsoleWriter::Warning( const wxString& fmt, ... ) const
|
bool IConsoleWriter::Warning( const wxString fmt, ... ) const
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args,fmt);
|
va_start(args,fmt);
|
||||||
|
|
|
@ -296,7 +296,7 @@ FastFormatUnicode& FastFormatUnicode::Write( const wxChar* fmt, ... )
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxMAJOR_VERSION >= 3
|
#if wxMAJOR_VERSION >= 3
|
||||||
FastFormatUnicode& FastFormatUnicode::Write( const wxString& fmt, ... )
|
FastFormatUnicode& FastFormatUnicode::Write( const wxString fmt, ... )
|
||||||
{
|
{
|
||||||
va_list list;
|
va_list list;
|
||||||
va_start(list, fmt);
|
va_start(list, fmt);
|
||||||
|
|
Loading…
Reference in New Issue