Initialize everything also in the invalid QtVersion ctor.

This commit is contained in:
dt
2009-09-03 19:45:09 +02:00
parent 5476bcf560
commit 53cfbb13a7
2 changed files with 19 additions and 3 deletions
@@ -445,6 +445,24 @@ QtVersion::QtVersion(const QString &qmakeCommand, bool isAutodetected, const QSt
m_name = qtVersionString();
}
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)
{
setQMakeCommand(QString::null);
}
QtVersion::~QtVersion()
{
@@ -55,9 +55,7 @@ public:
QtVersion(const QString &name, const QString &path, int id,
bool isAutodetected = false, const QString &autodetectionSource = QString());
QtVersion()
:m_name(QString::null), m_id(-1)
{ setQMakeCommand(QString::null); }
QtVersion();
~QtVersion();
bool isValid() const; //TOOD check that the dir exists and the name is non empty