mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
replace overloaded method with diff-named one, avoiding call to wrong
one when compiled on old 32-bit Atom. 32-bit issue, or what? This is quick and sure to fix it. Should be grafted back to main branch.
This commit is contained in:
parent
a34a859d18
commit
e82589a526
3 changed files with 6 additions and 4 deletions
|
@ -28,7 +28,7 @@ QueryBuilder::appendQueryf( const char* fmt, ... )
|
|||
do {
|
||||
va_list ap;
|
||||
va_start( ap, fmt );
|
||||
done = m_query.catf( fmt, ap );
|
||||
done = m_query.catfap( fmt, ap );
|
||||
va_end( ap );
|
||||
} while ( !done );
|
||||
return *this;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
bool
|
||||
StrWPF::catf( const char* fmt, va_list ap )
|
||||
StrWPF::catfap( const char* fmt, va_list ap )
|
||||
{
|
||||
bool success = false;
|
||||
const int origsiz = size();
|
||||
|
@ -57,7 +57,7 @@ StrWPF::catf( const char* fmt, ... )
|
|||
do {
|
||||
va_list ap;
|
||||
va_start( ap, fmt );
|
||||
done = catf( fmt, ap );
|
||||
done = catfap( fmt, ap );
|
||||
va_end( ap );
|
||||
} while ( !done );
|
||||
}
|
||||
|
|
|
@ -28,7 +28,9 @@ class StrWPF : public std::string {
|
|||
StrWPF() : m_addsiz(100){}
|
||||
|
||||
void catf( const char* fmt, ... );
|
||||
bool catf( const char* fmt, va_list ap );
|
||||
/* Don't overload catf: some compilers use the wrong one, maybe on
|
||||
32-bit? */
|
||||
bool catfap( const char* fmt, va_list ap );
|
||||
private:
|
||||
int m_addsiz;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue