Fix va_start format passing

This commit is contained in:
Markus Gans 2018-10-05 05:35:33 +02:00
parent 8e2c32ebdc
commit ca9bdad88a
6 changed files with 6 additions and 6 deletions

View File

@ -566,7 +566,7 @@ uInt FString::getUTF8length() const
}
//----------------------------------------------------------------------
FString& FString::sprintf (const FString& format, ...)
FString& FString::sprintf (const FString format, ...)
{
static const int BUFSIZE = 4096;
wchar_t buffer[BUFSIZE];

View File

@ -45,7 +45,7 @@ FTermBuffer::~FTermBuffer() // destructor
// public methods of FTermBuffer
//----------------------------------------------------------------------
int FTermBuffer::writef (const FString& format, ...)
int FTermBuffer::writef (const FString format, ...)
{
static const int BUFSIZE = 4096;
wchar_t buffer[BUFSIZE];

View File

@ -294,7 +294,7 @@ void FVTerm::delPreprocessingHandler (FVTerm* instance)
}
//----------------------------------------------------------------------
int FVTerm::printf (const FString& format, ...)
int FVTerm::printf (const FString format, ...)
{
static const int BUFSIZE = 4096;
wchar_t buffer[BUFSIZE];

View File

@ -193,7 +193,7 @@ class FString
wchar_t front() const;
wchar_t back() const;
FString& sprintf (const FString&, ...);
FString& sprintf (const FString, ...);
FString clear();
const wchar_t* wc_str() const;

View File

@ -79,7 +79,7 @@ class FTermBuffer
// Methods
void clear();
int writef (const FString&, ...);
int writef (const FString, ...);
int write (const FString&);
int write (int);
FTermBuffer& write ();

View File

@ -235,7 +235,7 @@ class FVTerm : public FTerm
, FPreprocessingHandler );
virtual void delPreprocessingHandler (FVTerm*);
int printf (const FString&, ...);
int printf (const FString, ...);
int print (const FString&);
int print (term_area*, const FString&);
int print (const std::vector<charData>&);