From 55254e9a12dd1ccad75de48db35111e0d6add4e6 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 23 Oct 2005 16:23:54 +0000 Subject: [PATCH] more const svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=473417 --- libscience/chemicaldataobject.cpp | 4 ++-- libscience/chemicaldataobject.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libscience/chemicaldataobject.cpp b/libscience/chemicaldataobject.cpp index 375e693..84a78b8 100644 --- a/libscience/chemicaldataobject.cpp +++ b/libscience/chemicaldataobject.cpp @@ -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 ){ diff --git a/libscience/chemicaldataobject.h b/libscience/chemicaldataobject.h index 8a52c05..dc294a4 100644 --- a/libscience/chemicaldataobject.h +++ b/libscience/chemicaldataobject.h @@ -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 -- 2.47.3