resolve build warning on constructor of OCResourceRequest
authorJaewook Jung <jw0213.jung@samsung.com>
Thu, 25 Aug 2016 00:45:32 +0000 (09:45 +0900)
committerJon A. Cruz <jon@joncruz.org>
Thu, 25 Aug 2016 22:06:41 +0000 (22:06 +0000)
resolved build warning caused by missing initializer for each member
in OCResourceRequest class.

Change-Id: I723cb36010ed84e6b532c7d842ee8f438674ed78
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10887
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/include/OCResourceRequest.h

index 538a134..e1a8824 100644 (file)
@@ -47,14 +47,15 @@ namespace OC
         typedef std::shared_ptr<OCResourceRequest> 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}
         {