]> Git trees. - libqmvoc.git/commitdiff
improve a bit
authorPino Toscano <pino@kde.org>
Tue, 18 Oct 2005 18:19:29 +0000 (18:19 +0000)
committerPino Toscano <pino@kde.org>
Tue, 18 Oct 2005 18:19:29 +0000 (18:19 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=471770

libscience/chemicaldataobject.cpp

index 1616486b0a6aa7e81acd9917513eae04ea62803b..347726bbb1d097b0eb82435f6dc5bc51d7b81f24 100644 (file)
@@ -39,10 +39,7 @@ bool ChemicalDataObject::operator==( const int v )
        if ( m_value.type() != QVariant::Int )  
                return false;
        
-       if ( m_value.toInt() == v )
-               return true;
-       
-       return false;
+       return m_value.toInt() == v;
 }
 
 bool ChemicalDataObject::operator==( const QString& v )
@@ -50,8 +47,5 @@ bool ChemicalDataObject::operator==( const QString& v )
        if ( m_value.type() != QVariant::String )       
                return false;
 
-       if ( m_value.toString() == v )
-               return true;
-
-       return false;
+       return m_value.toString() == v;
 }