mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
KItemListView fix valgrind issue "Conditional jump or move depends on uninitialised value"
KItemListView::setAlternateBackgrounds(bool) (kitemlistview.cpp:489) In C++, a data member of an object is not automatically initialized to "zero". In this case a bool had random values such as the integer 255.
This commit is contained in:
parent
e406bc197f
commit
8113af62c4
|
@ -63,6 +63,8 @@ KItemListView::KItemListView(QGraphicsWidget* parent) :
|
||||||
QGraphicsWidget(parent),
|
QGraphicsWidget(parent),
|
||||||
m_enabledSelectionToggles(false),
|
m_enabledSelectionToggles(false),
|
||||||
m_grouped(false),
|
m_grouped(false),
|
||||||
|
m_highlightEntireRow(false),
|
||||||
|
m_alternateBackgrounds(false),
|
||||||
m_supportsItemExpanding(false),
|
m_supportsItemExpanding(false),
|
||||||
m_editingRole(false),
|
m_editingRole(false),
|
||||||
m_activeTransactions(0),
|
m_activeTransactions(0),
|
||||||
|
@ -77,6 +79,7 @@ KItemListView::KItemListView(QGraphicsWidget* parent) :
|
||||||
m_visibleItems(),
|
m_visibleItems(),
|
||||||
m_visibleGroups(),
|
m_visibleGroups(),
|
||||||
m_visibleCells(),
|
m_visibleCells(),
|
||||||
|
m_scrollBarExtent(0),
|
||||||
m_layouter(nullptr),
|
m_layouter(nullptr),
|
||||||
m_animation(nullptr),
|
m_animation(nullptr),
|
||||||
m_oldScrollOffset(0),
|
m_oldScrollOffset(0),
|
||||||
|
|
Loading…
Reference in a new issue