From 0cdfab57ce40d73cbe9a6e671b2306baa598ec7c Mon Sep 17 00:00:00 2001 From: Elvio Basello Date: Wed, 15 Oct 2008 14:28:06 +0000 Subject: fixed malformed format strings, thanks to GlaDiaC git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2734 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/help/index.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/help/index.cpp') diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp index d65639e3f..3a7664b83 100644 --- a/src/modules/help/index.cpp +++ b/src/modules/help/index.cpp @@ -150,7 +150,7 @@ void Index::parseDocument( const QString &filename, int docNum ) KviFile file( filename ); if ( !file.openForReading() ) { QString warn = "cannot open file " + filename; - qWarning( warn.toUtf8().data() ); + qWarning("%s", warn.toUtf8().data() ); return; } QTextStream s( &file ); @@ -338,7 +338,7 @@ QString Index::getDocumentTitle( const QString &fileName ) KviFile file( fileName ); if ( !file.openForReading() ) { QString warn = "cannot open file " + fileName; - qWarning( warn.toUtf8().data() ); + qWarning("%s", warn.toUtf8().data() ); return fileName; } @@ -477,7 +477,7 @@ bool Index::searchForPattern( const QStringList &patterns, const QStringList &wo if ( !file.openForReading() ) { QString warn = "cannot open file " + fileName; - qWarning( warn.toUtf8().data() ); + qWarning("%s", warn.toUtf8().data() ); return FALSE; } else debug("Open file %s",fileName.toUtf8().data()); -- cgit v1.3.1-10-gc9f91