]> Git trees. - libqmvoc.git/commitdiff
more const
authorAlbert Astals Cid <tsdgeos@terra.es>
Sun, 23 Oct 2005 16:23:54 +0000 (16:23 +0000)
committerAlbert Astals Cid <tsdgeos@terra.es>
Sun, 23 Oct 2005 16:23:54 +0000 (16:23 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=473417

libscience/chemicaldataobject.cpp
libscience/chemicaldataobject.h

index 375e693cfe6426a7eddcfe6130c51c85b691ebec..84a78b8fe50ac8c3e1080be826de7a6ce56757eb 100644 (file)
@@ -113,7 +113,7 @@ void ChemicalDataObject::setType( int type )
        m_type = ( ChemicalDataObject::BlueObelisk ) type;
 }
 
-QString ChemicalDataObject::dictRef()
+QString ChemicalDataObject::dictRef() const
 {
        QString botype;
        switch ( m_type ){
@@ -178,7 +178,7 @@ QString ChemicalDataObject::dictRef()
        return botype;
 }
 
-QString ChemicalDataObject::unitAsString()
+QString ChemicalDataObject::unitAsString() const
 {
        QString bounit;
        switch ( m_unit ){
index 8a52c0588a4b30e86f4abcb8c0c625ed1bb30f5b..dc294a472f61d74fee72a29b527b212b9400fd4d 100644 (file)
@@ -160,13 +160,13 @@ class ChemicalDataObject
                 * @return the dictRef attribute of the XML. This is an
                 * identifier. For example, for the mass it is "bo:mass"
                 */
-               QString dictRef();
+               QString dictRef() const;
 
                /**
                 * @return the unit of the object as a QString. For example kelvin 
                 * will be returned as "bo:kelvin"
                 */
-               QString unitAsString();
+               QString unitAsString() const;
 
                /**
                 * @return the unit of the object