src/types.cpp

changeset 6
67b6ef6917ba
parent 1
c9b22c06307c
child 11
3ddebf76105e
equal deleted inserted replaced
5:3c04e05ab24f 6:67b6ef6917ba
12 text = text.arg( it->value() ); 12 text = text.arg( it->value() );
13 13
14 return text; 14 return text;
15 } 15 }
16 16
17 void doPrint( initlist<StringFormatArg> args ) { 17 void doPrint( FILE* fp, initlist<StringFormatArg> args ) {
18 printf( "%s", doFormat( args ).toStdString().c_str() ); 18 fprintf( fp, "%s", doFormat( args ).toStdString().c_str() );
19 } 19 }
20 20
21 // ============================================================================= 21 // =============================================================================
22 StringFormatArg::StringFormatArg( const str& v ) { m_val = v; } 22 StringFormatArg::StringFormatArg( const str& v ) { m_val = v; }
23 StringFormatArg::StringFormatArg( const char& v ) { m_val = v; } 23 StringFormatArg::StringFormatArg( const char& v ) { m_val = v; }

mercurial