forked from qt-creator/qt-creator
More Utils::toSet/toList
... and unrelated cosmetic changes. Change-Id: I591b17fd5289831e701b683f8fb47816efd1fa67 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -123,7 +123,7 @@ void TodoItemsProvider::createScanners()
|
||||
void TodoItemsProvider::setItemsListWithinStartupProject()
|
||||
{
|
||||
QHashIterator<FilePath, QList<TodoItem> > it(m_itemsHash);
|
||||
const auto filePaths = QSet<FilePath>::fromList(m_startupProject->files(Project::SourceFiles));
|
||||
const auto filePaths = Utils::toSet(m_startupProject->files(Project::SourceFiles));
|
||||
|
||||
QVariantMap settings = m_startupProject->namedSettings(Constants::SETTINGS_NAME_KEY).toMap();
|
||||
|
||||
@@ -159,8 +159,7 @@ void TodoItemsProvider::setItemsListWithinSubproject()
|
||||
});
|
||||
|
||||
// files must be both in the current subproject and the startup-project.
|
||||
const auto fileNames
|
||||
= QSet<FilePath>::fromList(m_startupProject->files(Project::SourceFiles));
|
||||
const auto fileNames = Utils::toSet(m_startupProject->files(Project::SourceFiles));
|
||||
QHashIterator<FilePath, QList<TodoItem> > it(m_itemsHash);
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
|
||||
Reference in New Issue
Block a user