forked from qt-creator/qt-creator
QmakePriFile::update: Don't call buildDir() all the time.
Instead call it once per .pro file and pass that to all .pri file parses and other functions. This cuts down the number of calls for opening qtproject.pro from ~3000 to ~700 and speeds up opening qtproject.pro by roughly 3%. Change-Id: Iffd46d4bbedc9c380f70e916dae7151495990b39 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -976,7 +976,7 @@ QString QmakeProject::generatedUiHeader(const QString &formFile) const
|
||||
// the top-level project only.
|
||||
if (m_rootProjectNode)
|
||||
if (const QmakeProFileNode *pro = proFileNodeOf(m_rootProjectNode, FormType, formFile))
|
||||
return QmakeProFileNode::uiHeaderFile(pro->uiDirectory(), formFile);
|
||||
return QmakeProFileNode::uiHeaderFile(pro->uiDirectory(pro->buildDir()), formFile);
|
||||
return QString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user