diff options
author | Vincent Richard <[email protected]> | 2005-01-03 17:54:11 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-01-03 17:54:11 +0000 |
commit | bebdcb6e27a63546a0309ff02b76e345dd661060 (patch) | |
tree | bad63a8829c8101b96f36c6973fa81eda176a9f1 | |
parent | Changed year to 2005 in copyright header. (diff) | |
download | vmime-bebdcb6e27a63546a0309ff02b76e345dd661060.tar.gz vmime-bebdcb6e27a63546a0309ff02b76e345dd661060.zip |
outputStreamStringAdapter::write() improvement.
-rw-r--r-- | src/utility/stream.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utility/stream.cpp b/src/utility/stream.cpp index 4eac284a..6360de17 100644 --- a/src/utility/stream.cpp +++ b/src/utility/stream.cpp @@ -92,8 +92,7 @@ outputStreamStringAdapter::outputStreamStringAdapter(string& buffer) void outputStreamStringAdapter::write(const value_type* const data, const size_type count) { - // TODO: better way? - std::copy(data, data + count, std::back_inserter(m_buffer)); + m_buffer.append(data, count); } |