summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-04-05 15:38:53 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-04-05 15:38:53 +0000
commita38caa81033fe61f01fc1c2d98b9af92a514f9e6 (patch)
tree03d6c9a58dfe40b16e11c7d260d3e06e6ac3fd9f
parentceaadd08b2f479750f66fa082efc28c041765a07 (diff)
downloadpcre-a38caa81033fe61f01fc1c2d98b9af92a514f9e6.tar.gz
Applied Craig's patch to remove the use of push_back().
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@331 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r--ChangeLog2
-rw-r--r--pcrecpp.cc4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ae58c4d..a97fe92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,8 @@ Version 7.7 05-Mar-08
8. Applied Craig's patch to pcrecpp.cc to fix a problem in OS X that was
caused by fix #2 above. (Subsequently also a second patch to fix the
first patch. And a third patch - this was a messy problem.)
+
+9. Applied Craig's patch to remove the use of push_back().
Version 7.6 28-Jan-08
diff --git a/pcrecpp.cc b/pcrecpp.cc
index c391652..ba0ff6e 100644
--- a/pcrecpp.cc
+++ b/pcrecpp.cc
@@ -605,14 +605,14 @@ bool RE::Rewrite(string *out, const StringPiece &rewrite,
if (start >= 0)
out->append(text.data() + start, vec[2 * n + 1] - start);
} else if (c == '\\') {
- out->push_back('\\');
+ *out += '\\';
} else {
//fprintf(stderr, "invalid rewrite pattern: %.*s\n",
// rewrite.size(), rewrite.data());
return false;
}
} else {
- out->push_back(c);
+ *out += c;
}
}
return true;