Fix clazy complaint about detatch

pull/1111/head
Nicolas Werner 3 years ago
parent 98de51042a
commit 3256d9bafe
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/PowerlevelsEditModels.cpp

@ -600,7 +600,7 @@ PowerlevelEditingModels::commit()
void void
PowerlevelEditingModels::addRole(int pl) PowerlevelEditingModels::addRole(int pl)
{ {
for (const auto &e : types_.types) for (const auto &e : qAsConst(types_.types))
if (pl == int(e.pl)) if (pl == int(e.pl))
return; return;

Loading…
Cancel
Save