mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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)
|
||||
{
|
||||
columns = 0; // I'm not sure about this one - I can't see where it gets initialized
|
||||
rootItem = new TreeItem();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue