From 875b9b3c697182686d552cae85e136d17f36896a Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Mon, 28 Apr 2008 03:04:54 +0000 Subject: Yet more KDE4 port git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1609 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/help/index.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/modules/help') diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp index e82074105..8cc7f3ed3 100755 --- a/src/modules/help/index.cpp +++ b/src/modules/help/index.cpp @@ -27,6 +27,7 @@ #include "index.h" #include "kvi_file.h" +#include "kvi_qstring.h" #include "kvi_pointerhashtable.h" #include @@ -127,7 +128,7 @@ void Index::setupDocumentList() void Index::insertInDict( const QString &str, int docNum ) { - if ( strcmp( str, "amp" ) == 0 || strcmp( str, "nbsp" ) == 0 ) return; + if (KviQString::equalCI( str, "amp" ) || KviQString::equalCI( str, "nbsp" ) ) return; Entry *e = 0; if ( dict.count() ) e = dict[ str ]; @@ -145,7 +146,8 @@ void Index::parseDocument( const QString &filename, int docNum ) { KviFile file( filename ); if ( !file.openForReading() ) { - qWarning( "can not open file " + filename ); + QString warn = "cannot open file " + filename; + qWarning( warn.toUtf8().data() ); return; } QTextStream s( &file ); @@ -332,7 +334,8 @@ QString Index::getDocumentTitle( const QString &fileName ) { KviFile file( fileName ); if ( !file.openForReading() ) { - qWarning( "cannot open file " + fileName ); + QString warn = "cannot open file " + fileName; + qWarning( warn.toUtf8().data() ); return fileName; } @@ -470,7 +473,8 @@ bool Index::searchForPattern( const QStringList &patterns, const QStringList &wo KviFile file( fileName ); if ( !file.openForReading() ) { - qWarning( "cannot open file " + fileName ); + QString warn = "cannot open file " + fileName; + qWarning( warn.toUtf8().data() ); return FALSE; } -- cgit v1.3.1-10-gc9f91