[Pcre-svn] [331] code/trunk: Applied Craig's patch to remove…

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [331] code/trunk: Applied Craig's patch to remove the use of push_back().
Revision: 331
          http://vcs.pcre.org/viewvc?view=rev&revision=331
Author:   ph10
Date:     2008-04-05 16:38:53 +0100 (Sat, 05 Apr 2008)


Log Message:
-----------
Applied Craig's patch to remove the use of push_back().

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcrecpp.cc


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2008-04-05 15:31:38 UTC (rev 330)
+++ code/trunk/ChangeLog    2008-04-05 15:38:53 UTC (rev 331)
@@ -40,6 +40,8 @@
 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

Modified: code/trunk/pcrecpp.cc
===================================================================
--- code/trunk/pcrecpp.cc    2008-04-05 15:31:38 UTC (rev 330)
+++ code/trunk/pcrecpp.cc    2008-04-05 15:38:53 UTC (rev 331)
@@ -605,14 +605,14 @@
         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;