Skip to content

Commit

Permalink
pre-initialize more invariant properties
Browse files Browse the repository at this point in the history
Change-Id: I0add2e7ead5a3d63124ef7ff85362895dd64bd23
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
ossilator authored and Qt by Nokia committed Sep 5, 2012
1 parent 19e3441 commit 09df6be
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions qmake/property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ QMakeProperty::QMakeProperty() : settings(0)
}
m_values[name] = val;
}
m_values["QMAKE_VERSION"] = qmake_version();
#ifdef QT_VERSION_STR
m_values["QT_VERSION"] = QT_VERSION_STR;
#endif
}

QMakeProperty::~QMakeProperty()
Expand All @@ -107,12 +111,6 @@ QMakeProperty::value(const QString &v)
QString val = m_values.value(v);
if (!val.isNull())
return val;
else if(v == "QMAKE_VERSION")
return qmake_version();
#ifdef QT_VERSION_STR
else if(v == "QT_VERSION")
return QT_VERSION_STR;
#endif

initSettings();
if (!settings->contains(v))
Expand Down

0 comments on commit 09df6be

Please sign in to comment.