Make the code in ByteVector::append() a bit more clearer.

This commit is contained in:
Tsuda Kageyu 2016-02-21 00:43:33 +09:00
parent 7d8aa7b8bd
commit 01054009ac

View File

@ -562,7 +562,7 @@ ByteVector &ByteVector::append(const ByteVector &v)
const unsigned int originalSize = size();
const unsigned int appendSize = v.size();
resize(originalSize + v.size());
resize(originalSize + appendSize);
::memcpy(data() + originalSize, v.data(), appendSize);
return *this;