diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-04-05 15:38:53 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-04-05 15:38:53 +0000 |
commit | a38caa81033fe61f01fc1c2d98b9af92a514f9e6 (patch) | |
tree | 03d6c9a58dfe40b16e11c7d260d3e06e6ac3fd9f | |
parent | ceaadd08b2f479750f66fa082efc28c041765a07 (diff) | |
download | pcre-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-- | ChangeLog | 2 | ||||
-rw-r--r-- | pcrecpp.cc | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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 @@ -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; |