mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 07:05:26 -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:
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue