From 3256d9bafe3f423b24a22785a17465ad08936f28 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 28 Jun 2022 13:33:46 +0200 Subject: [PATCH] Fix clazy complaint about detatch --- src/PowerlevelsEditModels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerlevelsEditModels.cpp b/src/PowerlevelsEditModels.cpp index cea35495..38ab42dc 100644 --- a/src/PowerlevelsEditModels.cpp +++ b/src/PowerlevelsEditModels.cpp @@ -600,7 +600,7 @@ PowerlevelEditingModels::commit() void PowerlevelEditingModels::addRole(int pl) { - for (const auto &e : types_.types) + for (const auto &e : qAsConst(types_.types)) if (pl == int(e.pl)) return;