forked from qt-creator/qt-creator
CMakeProject: Prefer assignment to out parameter
Also change method names from update...() to create...() and mark as const. This communicates that the objects the methods are called on are neither altered nor updated. Change-Id: I29e84dc398ded3ffcbf90741227362c6b4be2bf9 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -298,11 +298,11 @@ void BuildDirManager::generateProjectTree(CMakeProjectNode *root, const QList<co
|
||||
m_reader->generateProjectTree(root, allFiles);
|
||||
}
|
||||
|
||||
void BuildDirManager::updateCodeModel(CppTools::RawProjectParts &rpps)
|
||||
CppTools::RawProjectParts BuildDirManager::createRawProjectParts() const
|
||||
{
|
||||
QTC_ASSERT(!m_isHandlingError, return);
|
||||
QTC_ASSERT(m_reader, return);
|
||||
return m_reader->updateCodeModel(rpps);
|
||||
QTC_ASSERT(!m_isHandlingError, return {});
|
||||
QTC_ASSERT(m_reader, return {});
|
||||
return m_reader->createRawProjectParts();
|
||||
}
|
||||
|
||||
void BuildDirManager::clearCache()
|
||||
|
||||
Reference in New Issue
Block a user