aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-03-02 18:34:12 +0100
committerhjk <hjk@qt.io>2020-03-03 09:17:20 +0000
commitb0b50257ecbac450d74982e600f0586e507c8fd2 (patch)
treead108ea7e7b9dd7501fe966d64690f788199a6cc /src/plugins/projectexplorer
parent757628bf4a4a323d580f05e2362ebeed3415603b (diff)
ProjectExplorer: Pass extra project files as QSet
They are available in some cases as such, and consumed as such. Change-Id: I9866c7d7bd817fb19a8b11a0efbe583ed55fe393 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r--src/plugins/projectexplorer/project.cpp4
-rw-r--r--src/plugins/projectexplorer/project.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp
index 5e511fceda..f338b3bfaf 100644
--- a/src/plugins/projectexplorer/project.cpp
+++ b/src/plugins/projectexplorer/project.cpp
@@ -354,9 +354,9 @@ void Project::setNeedsInitialExpansion(bool needsExpansion)
d->m_needsInitialExpansion = needsExpansion;
}
-void Project::setExtraProjectFiles(const QVector<Utils::FilePath> &projectDocumentPaths)
+void Project::setExtraProjectFiles(const QSet<Utils::FilePath> &projectDocumentPaths)
{
- QSet<Utils::FilePath> uniqueNewFiles = Utils::toSet(projectDocumentPaths);
+ QSet<Utils::FilePath> uniqueNewFiles = projectDocumentPaths;
uniqueNewFiles.remove(projectFilePath()); // Make sure to never add the main project file!
QSet<Utils::FilePath> existingWatches = Utils::transform<QSet>(d->m_extraProjectDocuments,
diff --git a/src/plugins/projectexplorer/project.h b/src/plugins/projectexplorer/project.h
index 5fb9c3ad8e..b93e273a06 100644
--- a/src/plugins/projectexplorer/project.h
+++ b/src/plugins/projectexplorer/project.h
@@ -164,7 +164,7 @@ public:
// Set project files that will be watched and trigger the same callback
// as the main project file.
- void setExtraProjectFiles(const QVector<Utils::FilePath> &projectDocumentPaths);
+ void setExtraProjectFiles(const QSet<Utils::FilePath> &projectDocumentPaths);
void setDisplayName(const QString &name);
void setProjectLanguage(Core::Id id, bool enabled);