ClangPchManager: Take argument by reference

Change-Id: I7a6ee30497d7542feab7ea78d1f90123b3f3aef0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-07-24 15:49:43 +02:00
parent 2fd72ed9d9
commit e23ec051cd
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ Utils::SmallStringVector PchCreator::generateClangCompilerArguments(const PchTas
return builder.commandLine;
}
FilePathIds PchCreator::existingSources(FilePathIds sources) const
FilePathIds PchCreator::existingSources(const FilePathIds &sources) const
{
FilePathIds existingSources;
existingSources.reserve(sources.size());

View File

@@ -82,7 +82,7 @@ public:
const ClangTool &clangTool() const { return m_clangTool; }
FilePathIds existingSources(FilePathIds sources) const;
FilePathIds existingSources(const FilePathIds &sources) const;
const FilePathIds &watchedSystemIncludes() const { return m_watchedSystemIncludes; }
const FilePathIds &watchedProjectIncludes() const { return m_watchedProjectIncludes; }