mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix possibly uninitialized value
I'm not sure about this one. It's possible that there's something happening behind the scenes that I don't understand. But let's just initialize this to 0 and be sure. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f693bbd7a0
commit
2513410132
1 changed files with 1 additions and 0 deletions
|
@ -906,6 +906,7 @@ QVariant TreeItem::data(int column, int role) const
|
||||||
|
|
||||||
TreeModel::TreeModel(QObject *parent) : QAbstractItemModel(parent)
|
TreeModel::TreeModel(QObject *parent) : QAbstractItemModel(parent)
|
||||||
{
|
{
|
||||||
|
columns = 0; // I'm not sure about this one - I can't see where it gets initialized
|
||||||
rootItem = new TreeItem();
|
rootItem = new TreeItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue