From 79c9b3d32977cb708abcd4bb70f7ce4ea0ba57fe Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Sun, 24 Sep 2006 12:42:50 +0000 Subject: [PATCH] Krazy: use a const & for QString svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=587909 --- libscience/moleculeparser.cpp | 2 +- libscience/moleculeparser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: -- 2.47.3