--- a/qtmobility/tools/icheck/main.cpp Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/tools/icheck/main.cpp Mon May 03 13:18:40 2010 +0300
@@ -65,7 +65,7 @@
QString interfaceHeaderFile = argv[1];
QString checkHeaderFile = argv[2];
- QString curpath = QDir::currentPath();
+ const QString curpath = QDir::currentPath();
//Create FileInfos for the header files
QFileInfo iFileInfo(interfaceHeaderFile);
if (iFileInfo.isDir() || !iFileInfo.exists()){
@@ -74,7 +74,7 @@
else
err = "File does not exist: " + interfaceHeaderFile;
}
- if(err == ""){
+ if(err.isEmpty()){
QFileInfo chFileInfo(checkHeaderFile);
if (chFileInfo.isDir() || !chFileInfo.exists()){
if(chFileInfo.isDir())
@@ -82,7 +82,7 @@
else
err = "File does not exist: " + checkHeaderFile;
}
- if(err == ""){
+ if(err.isEmpty()){
//Read other parameters
QString outputfile;
for(int i = 3; i < argc; i++)
@@ -134,7 +134,7 @@
}
}
- if(err != "") //prit out error
+ if(!err.isEmpty()) //prit out error
{
cout << endl << "Error:" << endl;
cout << (const char *)err.toLatin1();