commit | 16cbc4fde2f76fa15961ab540623c3aaec7d4b93 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Fri Sep 09 20:29:43 2016 +0200 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Sat Sep 10 13:27:03 2016 -0700 |
tree | 5ba9553cd8f673fdcea00c25994feb09d91e2718 | |
parent | 1b0f486b4a2f276841335fb1bf0b1bf03f939391 [diff] |
encoding: optimize BufferAppendDevice::write Change-Id: Idc610856431fe0a160923e826f06cfd0a55f3ae2 Refs: #3727
diff --git a/src/encoding/buffer-stream.cpp b/src/encoding/buffer-stream.cpp index 3fed843..ec501e6 100644 --- a/src/encoding/buffer-stream.cpp +++ b/src/encoding/buffer-stream.cpp
@@ -32,7 +32,7 @@ std::streamsize BufferAppendDevice::write(const char_type* s, std::streamsize n) { - std::copy(s, s + n, std::back_inserter(m_container)); + m_container.insert(m_container.end(), s, s + n); return n; }