summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-08-03 18:34:36 +0200
committerDavid Tardon <dtardon@redhat.com>2015-08-03 18:35:48 +0200
commit3a97bddcfb4a6d8cbd1899acad18d34f46e274ea (patch)
tree73ac93af914688e7cd08564be0e25b2069490030
parent102b5084f3adf9fea175c9eaa856e43fb7065121 (diff)
assign the whole buffer at once
Change-Id: I6f83bd1a4da66a80a6e640f86b2eba55d54a7696
-rw-r--r--src/lib/VSDInternalStream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/VSDInternalStream.cpp b/src/lib/VSDInternalStream.cpp
index 9cc2eb4..9d69c39 100644
--- a/src/lib/VSDInternalStream.cpp
+++ b/src/lib/VSDInternalStream.cpp
@@ -25,8 +25,7 @@ VSDInternalStream::VSDInternalStream(librevenge::RVNGInputStream *input, unsigne
if (!compressed)
{
- for (unsigned long i=0; i<tmpNumBytesRead; i++)
- m_buffer.push_back(tmpBuffer[i]);
+ m_buffer.assign(tmpBuffer, tmpBuffer + tmpNumBytesRead);
}
else
{