]> Git trees. - libqmvoc.git/commitdiff
ebn happiness++
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>
Mon, 21 Jul 2008 04:40:09 +0000 (04:40 +0000)
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>
Mon, 21 Jul 2008 04:40:09 +0000 (04:40 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=835710

keduvocdocument/keduvockvtmlcompability.cpp
libscience/moleculeparser.cpp

index 3c6686d4095b0f36310b92cd09695f5c31c172ad..65501744f50854fedb37d3f30230a126a10cac0e 100644 (file)
@@ -105,7 +105,7 @@ KEduVocWordType* KEduVocKvtmlCompability::typeFromOldFormat(KEduVocWordType* par
     }
 
     QString typeName = m_oldMainTypeNames.value( mainType );
-    if ( typeName == QString() ) {
+    if ( typeName.isEmpty() ) {
         kDebug() << "Unknown old maintype: " << typeSubtypeString;
         return 0;
     }
index 92fccdbbf517f128d9ea7d8fbe98e673a1110a9b..9057be261d3c6166728a34265de8046537534bda 100644 (file)
@@ -126,7 +126,7 @@ MoleculeParser::weight(const QString&         _moleculeString,
                                           double          *_resultMass,
                                           ElementCountMap *_resultMap)
 {
-       if ( _moleculeString == QString() )
+       if ( _moleculeString.isEmpty() )
                return false;
        
        // Clear the result variables and set m_error to false