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.
void Reply::SetUncompressedSize()
{
unsigned uncompressed_size = 0;
uncompressed_size = content.size();
SetSize(uncompressed_size);
SetSize(static_cast<unsigned>(content.size()));
}
std::vector<boost::asio::const_buffer> Reply::ToBuffers()