فهرست منبع

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

	Use append instead of insert.
	* src/GZipDecoder.cc
Tatsuhiro Tsujikawa 17 سال پیش
والد
کامیت
61bb4bc02e
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  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;