From 9b469453a708be66190cfeb392e5fbf9a54a8627 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 9 Jul 2015 12:46:04 +0200 Subject: [PATCH] Fix compiler warnings refs #9447 --- lib/remote/httprequest.cpp | 9 +++++---- lib/remote/httpresponse.cpp | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/remote/httprequest.cpp b/lib/remote/httprequest.cpp index 57f5bcadf..876ddbeef 100644 --- a/lib/remote/httprequest.cpp +++ b/lib/remote/httprequest.cpp @@ -27,11 +27,12 @@ using namespace icinga; HttpRequest::HttpRequest(StreamReadContext& src) - : m_State(HttpRequestStart), m_Context(src), - m_ChunkContext(m_Context), + : Complete(false), 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) diff --git a/lib/remote/httpresponse.cpp b/lib/remote/httpresponse.cpp index a1e9915c3..d42fc68a8 100644 --- a/lib/remote/httpresponse.cpp +++ b/lib/remote/httpresponse.cpp @@ -26,7 +26,7 @@ using namespace icinga; 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) -- 2.40.0