]> git.mxchange.org Git - simgear.git/commitdiff
Use std::string.append, avoid string copying.
authorJames Turner <zakalawe@mac.com>
Sat, 5 Oct 2013 22:25:25 +0000 (23:25 +0100)
committerJames Turner <zakalawe@mac.com>
Wed, 9 Oct 2013 08:03:27 +0000 (10:03 +0200)
Removes a hot-spot on the SVN update path.

simgear/io/SVNReportParser.cxx

index 93695f167961ec1ea588434c8ed24da81a72f360..758dd00dc0176335ac103656d9501cd39e52b2c7 100644 (file)
@@ -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);
     }
   }