From a2b7343c07511edc09fee13a701e21c8fc197fe8 Mon Sep 17 00:00:00 2001 From: dt Date: Thu, 3 Sep 2009 19:32:45 +0200 Subject: [PATCH] Initialiaze everything. --- .../qt4projectmanager/qtversionmanager.cpp | 27 ++++++++++++++++++- .../qt4projectmanager/qtversionmanager.h | 5 ++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/plugins/qt4projectmanager/qtversionmanager.cpp b/src/plugins/qt4projectmanager/qtversionmanager.cpp index 7ff67797661..bc4b10cb834 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.cpp +++ b/src/plugins/qt4projectmanager/qtversionmanager.cpp @@ -388,6 +388,8 @@ QtVersion::QtVersion(const QString &name, const QString &path, int id, m_isAutodetected(isAutodetected), m_autodetectionSource(autodetectionSource), m_hasDebuggingHelper(false), + m_mkspecUpToDate(false), + m_versionInfoUpToDate(false), m_notInstalled(false), m_defaultConfigIsDebug(true), m_defaultConfigIsDebugAndRelease(true), @@ -409,12 +411,35 @@ QtVersion::QtVersion(const QString &name, const QString &path, m_autodetectionSource(autodetectionSource), m_hasDebuggingHelper(false), m_mkspecUpToDate(false), - m_versionInfoUpToDate(false) + m_versionInfoUpToDate(false), + m_notInstalled(false), + m_defaultConfigIsDebug(true), + m_defaultConfigIsDebugAndRelease(true), + m_hasExamples(false), + m_hasDemos(false), + m_hasDocumentation(false) { m_id = getUniqueId(); setPath(path); } +QtVersion::QtVersion() + : m_name(QString::null), + m_id(-1), + m_isAutodetected(false), + m_hasDebuggingHelper(false), + m_mkspecUpToDate(false), + m_versionInfoUpToDate(false), + m_notInstalled(false), + m_defaultConfigIsDebug(true), + m_defaultConfigIsDebugAndRelease(true), + m_hasExamples(false), + m_hasDemos(false), + m_hasDocumentation(false) +{ + setPath(QString::null); +} + QtVersion::~QtVersion() { diff --git a/src/plugins/qt4projectmanager/qtversionmanager.h b/src/plugins/qt4projectmanager/qtversionmanager.h index 0dcc1fcb611..65666226e00 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.h +++ b/src/plugins/qt4projectmanager/qtversionmanager.h @@ -52,9 +52,8 @@ public: bool isAutodetected = false, const QString &autodetectionSource = QString()); QtVersion(const QString &name, const QString &path, int id, bool isAutodetected = false, const QString &autodetectionSource = QString()); - QtVersion() - :m_name(QString::null), m_id(-1) - { setPath(QString::null); } + QtVersion(); + ~QtVersion(); bool isValid() const; //TOOD check that the dir exists and the name is non empty