From 7c0866f6263a9f253baa9b7f63157ad1eb9179c7 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 18 Jun 2014 11:17:23 +0200 Subject: [PATCH] stream line code a bit in Reply --- Server/Http/Reply.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Server/Http/Reply.cpp b/Server/Http/Reply.cpp index e13627495..1f778cd84 100644 --- a/Server/Http/Reply.cpp +++ b/Server/Http/Reply.cpp @@ -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(content.size())); } std::vector Reply::ToBuffers()