Fix clazy complaint about detatch

This commit is contained in:
Nicolas Werner 2022-06-28 13:33:46 +02:00
parent 98de51042a
commit 3256d9bafe
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -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;