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:
GroupItemInfo()
{
popularity = 0;
publishKey = false;
subscribeFlags = 0;
max_visible_posts =0;
}
: popularity(0), publishKey(false), adminKey(false)
, subscribeFlags(0), max_visible_posts(0)
{}
public:
QString id;
@ -65,6 +62,7 @@ public:
quint32 max_visible_posts ;
};
//cppcheck-suppress noConstructor
class GroupTreeWidget : public QWidget
{
Q_OBJECT