From 9618189879330103a0e61586d5266f3234d11766 Mon Sep 17 00:00:00 2001 From: Jaewook Jung Date: Thu, 25 Aug 2016 09:45:32 +0900 Subject: [PATCH] resolve build warning on constructor of OCResourceRequest resolved build warning caused by missing initializer for each member in OCResourceRequest class. Change-Id: I723cb36010ed84e6b532c7d842ee8f438674ed78 Signed-off-by: Jaewook Jung Reviewed-on: https://gerrit.iotivity.org/gerrit/10887 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz --- resource/include/OCResourceRequest.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/resource/include/OCResourceRequest.h b/resource/include/OCResourceRequest.h index 538a134b7..e1a8824e0 100644 --- a/resource/include/OCResourceRequest.h +++ b/resource/include/OCResourceRequest.h @@ -47,14 +47,15 @@ namespace OC typedef std::shared_ptr Ptr; OCResourceRequest(): - m_requestType{}, - m_resourceUri{}, - m_queryParameters{}, - m_requestHandlerFlag{}, - m_messageID{}, - m_representation{}, - m_observationInfo{}, - m_headerOptions{}, + m_requestType{""}, + m_resourceUri{""}, + m_queryParameters{QueryParamsMap()}, + m_requestHandlerFlag{0}, + m_messageID{0}, + m_representation{OCRepresentation()}, + m_observationInfo{ObserveAction::ObserveRegister, 0, OCConnectivityType::CT_DEFAULT, + "", 0}, + m_headerOptions{HeaderOptions()}, m_requestHandle{nullptr}, m_resourceHandle{nullptr} { -- 2.34.1