Initialiaze everything.

This commit is contained in:
dt
2009-09-03 19:32:45 +02:00
parent 6c63055895
commit a2b7343c07
2 changed files with 28 additions and 4 deletions

View File

@@ -388,6 +388,8 @@ QtVersion::QtVersion(const QString &name, const QString &path, int id,
m_isAutodetected(isAutodetected), m_isAutodetected(isAutodetected),
m_autodetectionSource(autodetectionSource), m_autodetectionSource(autodetectionSource),
m_hasDebuggingHelper(false), m_hasDebuggingHelper(false),
m_mkspecUpToDate(false),
m_versionInfoUpToDate(false),
m_notInstalled(false), m_notInstalled(false),
m_defaultConfigIsDebug(true), m_defaultConfigIsDebug(true),
m_defaultConfigIsDebugAndRelease(true), m_defaultConfigIsDebugAndRelease(true),
@@ -409,12 +411,35 @@ QtVersion::QtVersion(const QString &name, const QString &path,
m_autodetectionSource(autodetectionSource), m_autodetectionSource(autodetectionSource),
m_hasDebuggingHelper(false), m_hasDebuggingHelper(false),
m_mkspecUpToDate(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(); m_id = getUniqueId();
setPath(path); 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() QtVersion::~QtVersion()
{ {

View File

@@ -52,9 +52,8 @@ public:
bool isAutodetected = false, const QString &autodetectionSource = QString()); bool isAutodetected = false, const QString &autodetectionSource = QString());
QtVersion(const QString &name, const QString &path, int id, QtVersion(const QString &name, const QString &path, int id,
bool isAutodetected = false, const QString &autodetectionSource = QString()); bool isAutodetected = false, const QString &autodetectionSource = QString());
QtVersion() 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 bool isValid() const; //TOOD check that the dir exists and the name is non empty