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

libscience/isotope.cpp
libscience/isotope.h

index 420c32c38e8718b020da6b74bf11f5713481870b..d02977b058f7ef4ec8178e020aa1f2afc3c23f29 100644 (file)
@@ -22,7 +22,7 @@
 #include <kdebug.h>
 #include <klocale.h>
 
-Isotope::Isotope( int neutrons, int protones,  double percentage, double weight, double halflife, QString format, double alphadecay, double betaplusdecay, double betaminusdecay, double ecdecay, double alphapercentage, double betapluspercentage, double betaminuspercentage, double ecpercentage, QString spin, QString magmoment)
+Isotope::Isotope( int neutrons, int protones,  double percentage, double weight, double halflife, const QString &format, double alphadecay, double betaplusdecay, double betaminusdecay, double ecdecay, double alphapercentage, double betapluspercentage, double betaminuspercentage, double ecpercentage, const QString &spin, const QString &magmoment)
 {
        m_neutrons = neutrons;
        m_protones = protones;
@@ -44,7 +44,7 @@ Isotope::Isotope( int neutrons, int protones,  double percentage, double weight,
        m_ecpercentage = ecpercentage;
 }
 
-QString Isotope::halflifeAsString()
+QString Isotope::halflifeAsString() const
 {
        QString halflife;
 
index feed345f911ef3b107e5dd7ba49b34ff379e392f..9bd832bf69114535a74a1db522ae1aea80e7be68 100644 (file)
@@ -36,7 +36,7 @@ class Isotope
                                double percentage, 
                                double weight, 
                                double halflife, 
-                               QString format, 
+                               const QString &format, 
                                double alphadecay, 
                                double betaplusdecay, 
                                double betaminusdecay, 
@@ -45,8 +45,8 @@ class Isotope
                                double betapluspercentage, 
                                double betaminuspercentage, 
                                double ecpercentage, 
-                               QString spin, 
-                               QString magmoment);
+                               const QString &spin, 
+                               const QString &magmoment);
 
                bool seconds() const{
                        if ( m_format == "seconds" )
@@ -136,7 +136,7 @@ class Isotope
                 * appended, for example "seconds" or "years" depending 
                 * on the timeframe
                 */
-               QString halflifeAsString();
+               QString halflifeAsString() const;
 
                /**
                 * @return the percentage of the betaminus decay