forked from qt-creator/qt-creator
Fix clang 10 warnings about unnecessary copies in range loops
Change-Id: I3b57869b5a04528518bc432b76768b01e3f53e81 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -303,7 +303,7 @@ void hardcodedTargetsAndPackages(const Utils::FilePath &dir, QVector<McuPackage
|
||||
|
||||
const QString QulTargetTemplate =
|
||||
dir.toString() + "/lib/cmake/Qul/QulTargets/QulTargets_%1_%2.cmake";
|
||||
for (const auto target : targets) {
|
||||
for (const auto &target : targets) {
|
||||
for (auto os : {McuTarget::OS::Desktop, McuTarget::OS::BareMetal,
|
||||
McuTarget::OS::FreeRTOS}) {
|
||||
for (int colorDepth : target.colorDepths) {
|
||||
|
||||
Reference in New Issue
Block a user