summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 22:21:33 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 22:21:33 -0800
commit251341013213be909de75ebac19be0ee9e68048d (patch)
tree7c15d6e15627d20b901846ad637404b5a357da0a /qt-ui/models.cpp
parentf693bbd7a0811e66a44e7a413b338814b5559631 (diff)
downloadsubsurface-251341013213be909de75ebac19be0ee9e68048d.tar.gz
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>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 3c455206b..25deca094 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -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();
}