forked from qt-creator/qt-creator
ClangPchManager: Take argument by reference
Change-Id: I7a6ee30497d7542feab7ea78d1f90123b3f3aef0 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -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());
|
||||
|
@@ -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; }
|
||||
|
Reference in New Issue
Block a user