diff options
| author | 2008-04-28 03:04:54 +0000 | |
|---|---|---|
| committer | 2008-04-28 03:04:54 +0000 | |
| commit | 875b9b3c697182686d552cae85e136d17f36896a (patch) | |
| tree | bda7a7456401b25f19a091189134c0de2233c177 /src/modules/help | |
| parent | A huge progress in KDE4 port, kvirc and several modules now compile. Linking ... (diff) | |
| download | KVIrc-875b9b3c697182686d552cae85e136d17f36896a.tar.gz KVIrc-875b9b3c697182686d552cae85e136d17f36896a.tar.bz2 KVIrc-875b9b3c697182686d552cae85e136d17f36896a.zip | |
Yet more KDE4 port
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1609 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/help')
| -rwxr-xr-x | src/modules/help/index.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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 <ctype.h> @@ -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; } |
