Commit 53cfbb13 authored by dt's avatar dt

Initialize everything also in the invalid QtVersion ctor.

parent 5476bcf5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment