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

List:       kde-commits
Subject:    koffice
From:       Benjamin Meyer <benjamin () csh ! rit ! edu>
Date:       2004-11-19 19:06:48
Message-ID: 20041119190648.47F8F16E2F () office ! kde ! org
[Download RAW message or body]

CVS commit by bmeyer: 

convert "" comparisions to use .isEmpty()


  M +1 -1      filters/kspread/gnumeric/gnumericexport.cc   1.23
  M +1 -1      filters/kspread/latex/export/format.cc   1.6
  M +1 -1      filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc   1.8
  M +1 -1      filters/kword/latex/export/document.cc   1.6
  M +1 -1      filters/kword/latex/export/pixmapFrame.cc   1.5
  M +1 -1      filters/kword/latex/export/textzone.cc   1.5
  M +1 -1      kexi/migration/importwizard.cpp   1.14
  M +1 -1      kword/mailmerge/sql/mailmerge_qtsqlplugin_easyfilter.cc   1.2


--- koffice/filters/kspread/gnumeric/gnumericexport.cc  #1.22:1.23
@@ -468,5 +468,5 @@ QDomElement GNUMERICExport::GetCellStyle
             }            
             
-            if (currency.getCurrencyCode(c.type) == "")
+            if (currency.getCurrencyCode(c.type).isEmpty())
                 stringFormat = "0.00";
             else if (currency.getCurrencyCode(c.type) == "$")

--- koffice/filters/kspread/latex/export/format.cc  #1.5:1.6
@@ -84,5 +84,5 @@ void Format::analyse(const QDomNode bali
 {
         /* <format brushstyle="5" brushcolor="#a70bc3" bgcolor="#ffffff" alignY="2" align="4" > */
-        if(getAttr(balise, "brushstyle") != "")
+        if( !getAttr(balise, "brushstyle").isEmpty() )
         {
                 _isValidFormat = true;

--- koffice/filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc  #1.7:1.8
@@ -214,5 +214,5 @@ void KSpreadLatexExportDiaImpl::accept()
         if(langUsedList->item(0) != NULL)
                 config->setDefaultLanguage(langUsedList->item(0)->text());
-        if(langUsedList->currentText() != "")
+        if( !(langUsedList->currentText().isEmpty()) )
         {
                 kdDebug() << "default lang. : " << langUsedList->currentText() << endl;

--- koffice/filters/kword/latex/export/document.cc  #1.5:1.6
@@ -204,5 +204,5 @@ void Document::generate(QTextStream &out
         }
         QString dir = "";
-        if(Config::instance()->getPicturesDir() != "" &&
+        if( !Config::instance()->getPicturesDir().isEmpty() &&
                         Config::instance()->getPicturesDir() != NULL &&
                         FileHeader::instance()->hasGraphics())

--- koffice/filters/kword/latex/export/pixmapFrame.cc  #1.4:1.5
@@ -163,5 +163,5 @@ void PixmapFrame::convert()
                 */
                 QString dir = "";
-                if(Config::instance()->getPicturesDir() == "" || 
+                if( Config::instance()->getPicturesDir().isEmpty() || 
                                 Config::instance()->getPicturesDir() == NULL)
                 {

--- koffice/filters/kword/latex/export/textzone.cc  #1.4:1.5
@@ -267,5 +267,5 @@ void TextZone::convert(QString& text, in
         expression = QString("\\x") + value.setNum(unicode, 16);
 
-        if(QString(escape) != "")
+        if( !QString(escape).isEmpty() )
         {
                 /*1. translate special characters with a space after. */

--- koffice/kexi/migration/importwizard.cpp  #1.13:1.14
@@ -193,5 +193,5 @@ bool importWizard::checkUserInput()
         finishtxt = i18n("Source type was not PostgreSQL Database.");
     }
-    if ((dstNewDBName->text() == "Enter new database name here" || dstNewDBName->text() == ""))
+    if ((dstNewDBName->text() == "Enter new database name here" || dstNewDBName->text().isEmpty()))
     {
         problem = true;

--- koffice/kword/mailmerge/sql/mailmerge_qtsqlplugin_easyfilter.cc  #1.1:1.2
@@ -67,5 +67,5 @@ void KWQTSqlEasyFilter::slotValueChanged
         {
                 case 0: 
-                        if (m_table->item(row,col)->text()!="")
+                        if ( !m_table->item(row,col)->text().isEmpty() )
                         {
                                 if (col==m_table->numCols()-1)


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

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