forked from qt-creator/qt-creator
Utils: Rename FilePathList to simply FilePaths
The exact storage type does not really matter here. Change-Id: Iefec40f0f5909c8e7ba3415db4a11962694e1b38 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -269,7 +269,7 @@ void BuiltinEditorDocumentParser::addFileAndDependencies(Snapshot *snapshot,
|
||||
|
||||
toRemove->insert(fileName);
|
||||
if (fileName != Utils::FilePath::fromString(filePath())) {
|
||||
Utils::FilePathList deps = snapshot->filesDependingOn(fileName);
|
||||
Utils::FilePaths deps = snapshot->filesDependingOn(fileName);
|
||||
toRemove->unite(Utils::toSet(deps));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ static void find_helper(QFutureInterface<CPlusPlus::Usage> &future,
|
||||
|
||||
const Utils::FilePath sourceFile = Utils::FilePath::fromUtf8(symbol->fileName(),
|
||||
symbol->fileNameLength());
|
||||
Utils::FilePathList files{sourceFile};
|
||||
Utils::FilePaths files{sourceFile};
|
||||
|
||||
if (symbol->isClass()
|
||||
|| symbol->isForwardClassDeclaration()
|
||||
@@ -689,7 +689,7 @@ static void findMacroUses_helper(QFutureInterface<CPlusPlus::Usage> &future,
|
||||
const CPlusPlus::Macro macro)
|
||||
{
|
||||
const Utils::FilePath sourceFile = Utils::FilePath::fromString(macro.fileName());
|
||||
Utils::FilePathList files{sourceFile};
|
||||
Utils::FilePaths files{sourceFile};
|
||||
files = Utils::filteredUnique(files + snapshot.filesDependingOn(sourceFile));
|
||||
|
||||
future.setProgressRange(0, files.size());
|
||||
|
||||
@@ -150,7 +150,7 @@ void CppIncludesFilter::prepareSearch(const QString &entry)
|
||||
m_needsUpdate = false;
|
||||
QSet<QString> seedPaths;
|
||||
for (Project *project : SessionManager::projects()) {
|
||||
const Utils::FilePathList allFiles = project->files(Project::SourceFiles);
|
||||
const Utils::FilePaths allFiles = project->files(Project::SourceFiles);
|
||||
for (const Utils::FilePath &filePath : allFiles )
|
||||
seedPaths.insert(filePath.toString());
|
||||
}
|
||||
|
||||
@@ -1137,7 +1137,7 @@ QList<ProjectPart::Ptr> CppModelManager::projectPartFromDependencies(
|
||||
const Utils::FilePath &fileName) const
|
||||
{
|
||||
QSet<ProjectPart::Ptr> parts;
|
||||
const Utils::FilePathList deps = snapshot().filesDependingOn(fileName);
|
||||
const Utils::FilePaths deps = snapshot().filesDependingOn(fileName);
|
||||
|
||||
QMutexLocker locker(&d->m_projectMutex);
|
||||
for (const Utils::FilePath &dep : deps)
|
||||
|
||||
Reference in New Issue
Block a user