misc
All checks were successful
the build was successful

This commit is contained in:
tastytea 2019-03-11 21:13:58 +01:00
parent d85190b113
commit c43436d970
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 8 additions and 2 deletions

View File

@ -356,6 +356,11 @@ public:
*/
virtual ~Entity();
/*!
* Returns the JSON object of the Entity
*
* @since 0.100.0
*/
operator const Json::Value() const;
/*!

View File

@ -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()

View File

@ -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 };