]> Git trees. - libqmvoc.git/commitdiff
Krazy: use a const & for QString
authorCarsten Niehaus <cniehaus@gmx.de>
Sun, 24 Sep 2006 12:42:50 +0000 (12:42 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Sun, 24 Sep 2006 12:42:50 +0000 (12:42 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=587909

libscience/moleculeparser.cpp
libscience/moleculeparser.h

index 4c9a634f792ff002bc3ca5147f4ce7348b3269b7..614cbb8ff664063135d41b65171a5fdc716a65af 100644 (file)
@@ -127,7 +127,7 @@ MoleculeParser::~MoleculeParser()
 // This method also acts as the main loop.
 
 bool
-MoleculeParser::weight(QString         _moleculeString, 
+MoleculeParser::weight(const QString&         _moleculeString, 
                                           double          *_resultMass,
                                           ElementCountMap *_resultMap)
 {
index fe45fe220eb6d14787eb6b9be402670844680fee..3b39a21c5f2a73c4140c6e5ab1748cd88506fc9f 100644 (file)
@@ -207,7 +207,7 @@ public:
      *
      * @return whether the parsing was successful or not
      */
-    bool  weight(QString         _moleculeString,
+    bool  weight(const QString&         _moleculeString,
                                 double          *_resultMass,
                                 ElementCountMap *_resultMap);
  private: