Fix compiler warnings

refs #9447
This commit is contained in:
Michael Friedrich 2015-07-09 12:46:04 +02:00
parent 14baa4a79b
commit 9b469453a7
2 changed files with 6 additions and 5 deletions

View File

@ -27,11 +27,12 @@
using namespace icinga; using namespace icinga;
HttpRequest::HttpRequest(StreamReadContext& src) HttpRequest::HttpRequest(StreamReadContext& src)
: m_State(HttpRequestStart), m_Context(src), : Complete(false),
m_ChunkContext(m_Context),
ProtocolVersion(HttpVersion10), ProtocolVersion(HttpVersion10),
Complete(false), Headers(new Dictionary()),
Headers(new Dictionary()) m_Context(src),
m_ChunkContext(m_Context),
m_State(HttpRequestStart)
{ } { }
bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool may_wait) bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool may_wait)

View File

@ -26,7 +26,7 @@
using namespace icinga; using namespace icinga;
HttpResponse::HttpResponse(const Stream::Ptr& stream, const HttpRequest& request) HttpResponse::HttpResponse(const Stream::Ptr& stream, const HttpRequest& request)
: m_Stream(stream), m_Request(request), m_State(HttpResponseStart) : m_State(HttpResponseStart), m_Request(request), m_Stream(stream)
{ } { }
void HttpResponse::SetStatus(int code, const String& message) void HttpResponse::SetStatus(int code, const String& message)