parent
d85190b113
commit
c43436d970
|
@ -356,6 +356,11 @@ public:
|
|||
*/
|
||||
virtual ~Entity();
|
||||
|
||||
/*!
|
||||
* Returns the JSON object of the Entity
|
||||
*
|
||||
* @since 0.100.0
|
||||
*/
|
||||
operator const Json::Value() const;
|
||||
|
||||
/*!
|
||||
|
|
|
@ -39,7 +39,8 @@ Easy::Entity::Entity(const Json::Value &object)
|
|||
{}
|
||||
|
||||
Easy::Entity::Entity()
|
||||
: _was_set(false)
|
||||
: _tree(Json::nullValue)
|
||||
, _was_set(false)
|
||||
{}
|
||||
|
||||
Easy::Entity::~Entity()
|
||||
|
|
|
@ -155,7 +155,7 @@ const return_entity_vector Easy::get_notifications(const uint16_t limit,
|
|||
|
||||
// Transform vector of strings to vector of Notification.
|
||||
std::transform(answer_v.begin(), answer_v.end(), notifications.begin(),
|
||||
[](const string s)
|
||||
[](const string &s)
|
||||
{ return GenericEntity(s); });
|
||||
|
||||
return { ret.error_code, ret.error_message, notifications };
|
||||
|
|
Reference in New Issue
Block a user