浏览代码

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;