Fix CppCheck in GroupTreeWidget.h

/retroshare-gui/src/gui/common/GroupTreeWidget.h:47: warning:
Cppcheck(uninitMemberVar): Member variable 'GroupItemInfo::adminKey' is
not initialized in the constructor.
/retroshare-gui/src/gui/common/GroupTreeWidget.h:68: warning:
Cppcheck(noConstructor): The class 'GroupTreeWidget' does not have a
constructor.
This commit is contained in:
Phenom 2017-08-13 18:47:36 +02:00 committed by csoler
parent f82ec64d29
commit 8438d7052b

View File

@ -45,12 +45,9 @@ class GroupItemInfo
{ {
public: public:
GroupItemInfo() GroupItemInfo()
{ : popularity(0), publishKey(false), adminKey(false)
popularity = 0; , subscribeFlags(0), max_visible_posts(0)
publishKey = false; {}
subscribeFlags = 0;
max_visible_posts =0;
}
public: public:
QString id; QString id;
@ -65,6 +62,7 @@ public:
quint32 max_visible_posts ; quint32 max_visible_posts ;
}; };
//cppcheck-suppress noConstructor
class GroupTreeWidget : public QWidget class GroupTreeWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT