Fix format string errors

pull/1/head
Timothy Pearson 13 years ago
parent 457d86b60c
commit 51ff06f0c1

@ -281,15 +281,15 @@ void KviKvsTreeNodeSpecialCommandDefpopupLabelPopup::dump(const char * prefix)
TQString x = tmp; TQString x = tmp;
x += "CONDITION: "; x += "CONDITION: ";
x += m_szCondition; x += m_szCondition;
debug(x.utf8().data()); debug("%s",x.utf8().data());
x = tmp; x = tmp;
x += "TEXT: "; x += "TEXT: ";
x += m_szText; x += m_szText;
debug(x.utf8().data()); debug("%s",x.utf8().data());
x = tmp; x = tmp;
x += "ICON: "; x += "ICON: ";
x += m_szIcon; x += m_szIcon;
debug(x.utf8().data()); debug("%s",x.utf8().data());
for(KviKvsTreeNodeSpecialCommandDefpopupLabel * l = m_pLabels->first();l;l = m_pLabels->next()) for(KviKvsTreeNodeSpecialCommandDefpopupLabel * l = m_pLabels->first();l;l = m_pLabels->next())
l->dump(tmp.utf8().data()); l->dump(tmp.utf8().data());
#endif #endif

@ -156,7 +156,7 @@ void Index::parseDocument( const TQString &filename, int docNum )
{ {
KviFile file( filename ); KviFile file( filename );
if ( !file.openForReading() ) { if ( !file.openForReading() ) {
tqWarning( "can not open file " + filename ); tqWarning( "can not open file %s", filename.ascii() );
return; return;
} }
TQTextStream s( &file ); TQTextStream s( &file );
@ -452,7 +452,7 @@ TQString Index::getDocumentTitle( const TQString &fileName )
if ( !file.openForReading() ) { if ( !file.openForReading() ) {
tqWarning( "cannot open file " + fileName ); tqWarning( "cannot open file %s", fileName.ascii() );
return fileName; return fileName;
@ -701,7 +701,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
if ( !file.openForReading() ) { if ( !file.openForReading() ) {
tqWarning( "cannot open file " + fileName ); tqWarning( "cannot open file %s", fileName.ascii() );
return FALSE; return FALSE;
@ -851,4 +851,4 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
#include "index.moc" #include "index.moc"

Loading…
Cancel
Save