From: Carsten Niehaus Date: Sun, 23 Oct 2005 16:19:48 +0000 (+0000) Subject: some more const X-Git-Tag: v3.80.2~266 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=c650a7b11591c5ca810a7a357e2512418e4cbcea;p=libqmvoc.git some more const svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=473414 --- diff --git a/libscience/chemicaldataobject.cpp b/libscience/chemicaldataobject.cpp index afb9089..375e693 100644 --- a/libscience/chemicaldataobject.cpp +++ b/libscience/chemicaldataobject.cpp @@ -21,7 +21,7 @@ #include -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; } diff --git a/libscience/chemicaldataobject.h b/libscience/chemicaldataobject.h index 823bf67..8a52c05 100644 --- a/libscience/chemicaldataobject.h +++ b/libscience/chemicaldataobject.h @@ -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.