]> Git trees. - libqmvoc.git/commitdiff
some more const
authorCarsten Niehaus <cniehaus@gmx.de>
Sun, 23 Oct 2005 16:19:48 +0000 (16:19 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Sun, 23 Oct 2005 16:19:48 +0000 (16:19 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=473414

libscience/chemicaldataobject.cpp
libscience/chemicaldataobject.h

index afb9089f55b4c35e4e203660d48ae071f177c7e3..375e693cfe6426a7eddcfe6130c51c85b691ebec 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <kdebug.h>
 
-ChemicalDataObject::ChemicalDataObject( QVariant v, BlueObelisk type )
+ChemicalDataObject::ChemicalDataObject( const QVariant& v, BlueObelisk type )
 {
        m_value = v;
        m_type = type;
@@ -98,7 +98,7 @@ ChemicalDataObject::BlueObeliskUnit ChemicalDataObject::unit() const
        return m_unit;
 }
 
-void ChemicalDataObject::setData( QVariant v )
+void ChemicalDataObject::setData( const QVariant& v )
 {
        m_value = v;
 }
index 823bf67eee79d719067beb2d9973295f8592897e..8a52c0588a4b30e86f4abcb8c0c625ed1bb30f5b 100644 (file)
@@ -85,14 +85,14 @@ class ChemicalDataObject
                 * @param v the data of the object
                 * @param type the type of the data
                 */
-               ChemicalDataObject(QVariant v, 
+               ChemicalDataObject( const QVariant& v, 
                                BlueObelisk type);
 
                /**
                 * Set the data of this object to @p v
                 * @param v the value of the object
                 */
-               void setData( QVariant v );
+               void setData( const QVariant& v );
                
                /**
                 * Destructor.