Fix clang warnings about copies in range-for constructs

Change-Id: If50553964483626e72a816b1d23fa81b45ed9ca7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Christian Kandeler
2020-06-15 13:40:39 +02:00
parent beee392dd8
commit 48be20cf48
11 changed files with 14 additions and 14 deletions

View File

@@ -56,7 +56,7 @@ ProjectInfo ProjectInfoGenerator::generate()
if (m_futureInterface.isCanceled())
return ProjectInfo();
for (const ProjectPart::Ptr part : createProjectParts(rpp))
for (const ProjectPart::Ptr &part : createProjectParts(rpp))
projectInfo.appendProjectPart(part);
}
@@ -101,7 +101,7 @@ static ProjectPart::Ptr projectPartFromRawProjectPart(
return part;
}
QVector<ProjectPart::Ptr> ProjectInfoGenerator::createProjectParts(
const QVector<ProjectPart::Ptr> ProjectInfoGenerator::createProjectParts(
const RawProjectPart &rawProjectPart)
{
using Utils::LanguageExtension;