From: Carsten Niehaus Date: Sun, 24 Sep 2006 12:42:50 +0000 (+0000) Subject: Krazy: use a const & for QString X-Git-Tag: v3.80.2~25 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=79c9b3d32977cb708abcd4bb70f7ce4ea0ba57fe;p=libqmvoc.git Krazy: use a const & for QString svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=587909 --- diff --git a/libscience/moleculeparser.cpp b/libscience/moleculeparser.cpp index 4c9a634..614cbb8 100644 --- a/libscience/moleculeparser.cpp +++ b/libscience/moleculeparser.cpp @@ -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) { diff --git a/libscience/moleculeparser.h b/libscience/moleculeparser.h index fe45fe2..3b39a21 100644 --- a/libscience/moleculeparser.h +++ b/libscience/moleculeparser.h @@ -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: