fix build error caused on specific compiler
authorJaewook Jung <jw0213.jung@samsung.com>
Fri, 26 Aug 2016 02:25:19 +0000 (11:25 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 26 Aug 2016 05:16:23 +0000 (05:16 +0000)
After I modified the constructor of OCResourceRequest to resolve build warning,
(https://gerrit.iotivity.org/gerrit/#/c/10887/)
some compiler cause compile error. So I fixed it.

Change-Id: Iaa96a574750dde7da1972cfea412df5c36b566f7
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10933
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/include/OCResourceRequest.h

index e1a8824..1f83b08 100644 (file)
@@ -53,12 +53,15 @@ namespace OC
             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}
         {
+            m_observationInfo.action = ObserveAction::ObserveRegister;
+            m_observationInfo.obsId = 0;
+            m_observationInfo.connectivityType = OCConnectivityType::CT_DEFAULT;
+            m_observationInfo.address = "";
+            m_observationInfo.port = 0;
         }
 
 #if defined(_MSC_VER) && (_MSC_VER < 1900)