From: James Turner Date: Sat, 5 Oct 2013 22:25:25 +0000 (+0100) Subject: Use std::string.append, avoid string copying. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d658b5fc389836a7eb916141dafca46e63ca12d3;p=simgear.git Use std::string.append, avoid string copying. Removes a hot-spot on the SVN update path. --- diff --git a/simgear/io/SVNReportParser.cxx b/simgear/io/SVNReportParser.cxx index 93695f16..758dd00d 100644 --- a/simgear/io/SVNReportParser.cxx +++ b/simgear/io/SVNReportParser.cxx @@ -442,11 +442,11 @@ public: } if (tagStack.back() == SVN_SET_PROP_TAG) { - setPropValue += string(s, length); + setPropValue.append(s, length); } else if (tagStack.back() == SVN_TXDELTA_TAG) { - txDeltaData += string(s, length); + txDeltaData.append(s, length); } else if (tagStack.back() == SVN_DAV_MD5_CHECKSUM) { - md5Sum += string(s, length); + md5Sum.append(s, length); } }