r20792 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Sat Jan 30 17:42:07 UTC 2016
Author: jghali
Date: Sat Jan 30 17:42:07 2016
New Revision: 20792
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20792
Log:
coverity #989846, uninitialized pointer field
Modified:
trunk/Scribus/scribus/tt/simpletreemodel/treemodel.cpp
trunk/Scribus/scribus/tt/simpletreemodel/treemodel.h
Modified: trunk/Scribus/scribus/tt/simpletreemodel/treemodel.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20792&path=/trunk/Scribus/scribus/tt/simpletreemodel/treemodel.cpp
==============================================================================
--- trunk/Scribus/scribus/tt/simpletreemodel/treemodel.cpp (original)
+++ trunk/Scribus/scribus/tt/simpletreemodel/treemodel.cpp Sat Jan 30 17:42:07 2016
@@ -50,6 +50,11 @@
#include "treeitem.h"
#include "treemodel.h"
+TreeModel::TreeModel(QObject *parent )
+{
+ m_rootItem = 0;
+}
+
//! [0]
TreeModel::TreeModel(const QString &data, QObject *parent)
: QAbstractItemModel(parent)
Modified: trunk/Scribus/scribus/tt/simpletreemodel/treemodel.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20792&path=/trunk/Scribus/scribus/tt/simpletreemodel/treemodel.h
==============================================================================
--- trunk/Scribus/scribus/tt/simpletreemodel/treemodel.h (original)
+++ trunk/Scribus/scribus/tt/simpletreemodel/treemodel.h Sat Jan 30 17:42:07 2016
@@ -55,7 +55,7 @@
public:
TreeModel(const QString &data, QObject *parent = 0);
- TreeModel(QObject *parent = 0) {}; //Scribus Added for ScHelpTreeModel
+ TreeModel(QObject *parent = 0); //Scribus Added for ScHelpTreeModel
~TreeModel();
QVariant data(const QModelIndex &index, int role) const;
More information about the scribus-commit
mailing list