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:
Phenom 2017-08-13 18:37:22 +02:00 committed by csoler
parent 25f1a919e0
commit 88d84e0249

View File

@ -74,7 +74,9 @@ class FlowLayoutItem : public QWidget
Q_OBJECT
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);
setAcceptDrops(true);
}