Commit 8113af62 authored by Marius Pa's avatar Marius Pa Committed by Méven Car
Browse files

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.
parent e406bc19
Pipeline #186857 passed with stage
in 8 minutes and 12 seconds
......@@ -63,6 +63,8 @@ KItemListView::KItemListView(QGraphicsWidget* parent) :
QGraphicsWidget(parent),
m_enabledSelectionToggles(false),
m_grouped(false),
m_highlightEntireRow(false),
m_alternateBackgrounds(false),
m_supportsItemExpanding(false),
m_editingRole(false),
m_activeTransactions(0),
......@@ -77,6 +79,7 @@ KItemListView::KItemListView(QGraphicsWidget* parent) :
m_visibleItems(),
m_visibleGroups(),
m_visibleCells(),
m_scrollBarExtent(0),
m_layouter(nullptr),
m_animation(nullptr),
m_oldScrollOffset(0),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment