Changeset for reviewing RI-CA integration changes.
[platform/upstream/iotivity.git] / resource / src / OCRepresentation.cpp
index e4b71d2..d7950af 100644 (file)
@@ -112,9 +112,9 @@ namespace OC
         }
     }
 
-    void MessageContainer::setJSONRepresentation(const unsigned char* payload)
+    void MessageContainer::setJSONRepresentation(const char* payload)
     {
-        setJSONRepresentation(std::string(reinterpret_cast<const char*>(payload)));
+        setJSONRepresentation(std::string(payload));
     }
 
     std::string MessageContainer::getJSONRepresentation(OCInfoFormat f) const
@@ -973,3 +973,4 @@ namespace OC
         return os;
     }
 }
+