stream line code a bit in Reply

This commit is contained in:
Dennis Luxen 2014-06-18 11:17:23 +02:00
parent 0f2062b739
commit 7c0866f626

View File

@ -46,9 +46,7 @@ void Reply::SetSize(const unsigned size)
// Sets the size of the uncompressed output. // Sets the size of the uncompressed output.
void Reply::SetUncompressedSize() void Reply::SetUncompressedSize()
{ {
unsigned uncompressed_size = 0; SetSize(static_cast<unsigned>(content.size()));
uncompressed_size = content.size();
SetSize(uncompressed_size);
} }
std::vector<boost::asio::const_buffer> Reply::ToBuffers() std::vector<boost::asio::const_buffer> Reply::ToBuffers()