mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -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
1 changed files with 4 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue