diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-09-13 20:55:43 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-09-13 20:55:43 +0000 |
commit | 50ab5fccce7607a788ab26c77f43dd3198c1d7c6 (patch) | |
tree | aab55b6ff389d1dfeb70bbbf2e944c6559b468a6 /protocols/FacebookRM/src/entities.h | |
parent | a6b06e8fee136a38231c3c15a438fe5043ed82eb (diff) |
Facebook: Fix errors from Coverity
git-svn-id: http://svn.miranda-ng.org/main/trunk@17294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/entities.h')
-rw-r--r-- | protocols/FacebookRM/src/entities.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/entities.h b/protocols/FacebookRM/src/entities.h index 2b98b5a393..5274d9d2b2 100644 --- a/protocols/FacebookRM/src/entities.h +++ b/protocols/FacebookRM/src/entities.h @@ -94,7 +94,12 @@ struct facebook_chatroom bool is_subscribed; bool read_only; - facebook_chatroom(std::string thread_id) : thread_id(thread_id) {} + facebook_chatroom(std::string thread_id) : thread_id(thread_id) { + this->can_reply = true; + this->is_archived = false; + this->is_subscribed = true; + this->read_only = false; + } }; struct facebook_message @@ -115,7 +120,8 @@ struct facebook_message facebook_message() { this->time = 0; - this->isUnread = this->isIncoming = true; + this->isUnread = true; + this->isIncoming = true; this->isChat = false; this->type = MESSAGE; this->flag_ = 0; @@ -138,6 +144,7 @@ struct facebook_notification this->time = 0; this->seen = false; this->hWndPopup = NULL; + this->icon = NULL; } void setIcon(const std::string &iconUrl) |