QStyleHintsPrivate: Use member initialization

Task-number: QTBUG-71471
Change-Id: I368193bc363944825c01da5337738fd0a7ba2219
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Friedemann Kleint 2018-11-05 11:07:04 +01:00
parent bfe53c7da5
commit 45a6397e3e

View File

@ -69,29 +69,16 @@ class QStyleHintsPrivate : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QStyleHints)
public:
inline QStyleHintsPrivate()
: m_mouseDoubleClickInterval(-1)
, m_mousePressAndHoldInterval(-1)
, m_startDragDistance(-1)
, m_startDragTime(-1)
, m_keyboardInputInterval(-1)
, m_cursorFlashTime(-1)
, m_tabFocusBehavior(-1)
, m_uiEffects(-1)
, m_wheelScrollLines(-1)
, m_mouseQuickSelectionThreshold(-1)
{}
int m_mouseDoubleClickInterval;
int m_mousePressAndHoldInterval;
int m_startDragDistance;
int m_startDragTime;
int m_keyboardInputInterval;
int m_cursorFlashTime;
int m_tabFocusBehavior;
int m_uiEffects;
int m_wheelScrollLines;
int m_mouseQuickSelectionThreshold;
int m_mouseDoubleClickInterval = -1;
int m_mousePressAndHoldInterval = -1;
int m_startDragDistance = -1;
int m_startDragTime = -1;
int m_keyboardInputInterval = -1;
int m_cursorFlashTime = -1;
int m_tabFocusBehavior = -1;
int m_uiEffects = -1;
int m_wheelScrollLines = -1;
int m_mouseQuickSelectionThreshold = -1;
};
/*!