diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-03-03 22:21:33 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-03 22:21:33 -0800 |
commit | 251341013213be909de75ebac19be0ee9e68048d (patch) | |
tree | 7c15d6e15627d20b901846ad637404b5a357da0a | |
parent | f693bbd7a0811e66a44e7a413b338814b5559631 (diff) | |
download | subsurface-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>
-rw-r--r-- | qt-ui/models.cpp | 1 |
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(); } |