mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
Fix CppCheck in FlowLayout.h
/retroshare-gui/src/gui/common/FlowLayout.h:77: warning: Cppcheck(uninitMemberVar): Member variable 'FlowLayoutItem::m_isSelected' is not initialized in the constructor. /retroshare-gui/src/gui/common/FlowLayout.h:77: warning: Cppcheck(uninitMemberVar): Member variable 'FlowLayoutItem::m_isCurrent' is not initialized in the constructor.
This commit is contained in:
parent
25f1a919e0
commit
88d84e0249
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ class FlowLayoutItem : public QWidget
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FlowLayoutItem(QString name=QString(), QWidget *parent=0) : QWidget(parent), m_myName(name){
|
FlowLayoutItem(QString name=QString(), QWidget *parent=0)
|
||||||
|
: QWidget(parent), m_myName(name), m_isSelected(false), m_isCurrent(false)
|
||||||
|
{
|
||||||
setFocusPolicy(Qt::StrongFocus);
|
setFocusPolicy(Qt::StrongFocus);
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue