aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-01-03 17:54:11 +0000
committerVincent Richard <[email protected]>2005-01-03 17:54:11 +0000
commitbebdcb6e27a63546a0309ff02b76e345dd661060 (patch)
treebad63a8829c8101b96f36c6973fa81eda176a9f1
parentChanged year to 2005 in copyright header. (diff)
downloadvmime-bebdcb6e27a63546a0309ff02b76e345dd661060.tar.gz
vmime-bebdcb6e27a63546a0309ff02b76e345dd661060.zip
outputStreamStringAdapter::write() improvement.
-rw-r--r--src/utility/stream.cpp3
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);
}