From f390ead38beec216558f58e4649418eeaa5726f7 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sat, 20 Feb 2016 12:16:42 +0300 Subject: [PATCH] fix #13 Not all members of a class are initialized inside the constructor. Consider inspecting: m_scriptManager. lrscriptenginemanager.h 89 --- src/lrscriptenginemanager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lrscriptenginemanager.h b/src/lrscriptenginemanager.h index 4372462..2633c60 100644 --- a/src/lrscriptenginemanager.h +++ b/src/lrscriptenginemanager.h @@ -86,9 +86,9 @@ class ScriptEngineModel : public QAbstractItemModel{ Q_OBJECT public: friend class ScriptEngineManager; - explicit ScriptEngineModel():m_rootNode(new ScriptEngineNode()){} - ~ScriptEngineModel(); + explicit ScriptEngineModel():m_scriptManager(0), m_rootNode(new ScriptEngineNode()){} explicit ScriptEngineModel(ScriptEngineManager* scriptManager); + ~ScriptEngineModel(); QModelIndex parent(const QModelIndex &child) const; QModelIndex index(int row, int column, const QModelIndex &parent) const; int rowCount(const QModelIndex &parent) const;