[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/rocs/src/Interface
From:       Laurent Montel <montel () kde ! org>
Date:       2011-02-25 12:23:35
Message-ID: 20110225122335.B67BDAC8C0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1222698 by mlaurent:

Use isEmpty()


 M  +2 -2      ImporterExporterManager.cpp  


--- trunk/KDE/kdeedu/rocs/src/Interface/ImporterExporterManager.cpp #1222697:1222698
@@ -54,7 +54,7 @@
     }
 
     kDebug() << "Exporting File..";
-    if ( exportDialog.selectedFile() == "" ) {
+    if ( exportDialog.selectedFile().isEmpty()) {
         return false;
     }
 
@@ -96,7 +96,7 @@
 
     kDebug() << "Extensions:"<< ext;
     QString fileName = dialog.selectedFile();
-    if ( fileName == "" ) return 0;
+    if ( fileName.isEmpty() ) return 0;
 
     int index = fileName.lastIndexOf ( '.' );
     FilePluginInterface * f = 0;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic