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:
Eric House 2014-11-08 23:07:34 -08:00 committed by Eric House
parent a34a859d18
commit e82589a526
3 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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 );
}

View file

@ -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;
};