mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
f82ec64d29
commit
8438d7052b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user