From cfcb884dde591212eba32fbeef39e79a21a10856 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 13 Jan 2009 22:56:45 +0000 Subject: [PATCH] Fixed an error that crept into the last iteration. --- Cantera/src/base/stringUtils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cantera/src/base/stringUtils.cpp b/Cantera/src/base/stringUtils.cpp index 9d17b8fab..01f4fc6d9 100755 --- a/Cantera/src/base/stringUtils.cpp +++ b/Cantera/src/base/stringUtils.cpp @@ -3,9 +3,11 @@ * Contains definitions for string manipulation functions * within Cantera. */ + /* * $Id$ */ + // Copyright 2001 California Institute of Technology #ifdef WIN32 @@ -182,7 +184,7 @@ namespace Cantera { * @param x Output map consisting of a composition * map, which is a string to double map */ - void parseCompString(const std::string ss, Cantera::compositionMap& x) { + void parseCompString(const std::string &ss, Cantera::compositionMap& x) { std::string s = ss; std::string::size_type icolon, ibegin, iend; std::string name, num, nm; @@ -550,7 +552,6 @@ namespace Cantera { ibegin = findFirstNotOfWS(val); if (ibegin != std::string::npos) { val = val.substr(ibegin,val.size()); - //iend = val.find_first_of(" \n\t"); iend = findFirstWS(val); if (iend == std::string::npos) { v.push_back(val);