stream line code a bit in Reply
This commit is contained in:
parent
0f2062b739
commit
7c0866f626
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user