Explorar o código

2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Use append instead of insert.
	* src/GZipDecoder.cc
Tatsuhiro Tsujikawa %!s(int64=17) %!d(string=hai) anos
pai
achega
61bb4bc02e
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 5 0
      ChangeLog
  2. 1 1
      src/GZipDecoder.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-07-01  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Use append instead of insert.
+	* src/GZipDecoder.cc
+
 2008-07-01  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Updated doc

+ 1 - 1
src/GZipDecoder.cc

@@ -97,7 +97,7 @@ std::string GZipDecoder::decode(const unsigned char* in, size_t length)
 
     size_t produced = OUTBUF_LENGTH-_strm->avail_out;
 
-    out.insert(out.end(), &outbuf[0], &outbuf[produced]);
+    out.append(&outbuf[0], &outbuf[produced]);
 
     if(_strm->avail_out > 0) {
       break;