The patch for fixing the 'empty' representation object issue
was incorrectly manually merged when it (review 633) was split from
the previous C++ unit test review.
Change-Id: Ib732e5dfcda6a6d34d072d5d93c363fd731912f6
Signed-off-by: Erich Keane <erich.keane@intel.com>
std::string MessageContainer::getJSONRepresentation(OCInfoFormat f) const
{
- if(empty())
- {
- return "{}";
- }
-
std::stringstream os;
// note: the block is required because cereal closes the JSON string
{ }
std::string OCRepresentation::getJSONRepresentation() const
{
+ if(empty())
+ {
+ return "{}";
+ }
+
std::stringstream os;
// note: the block is required because cereal closes the JSON string