forked from quickshell/quickshell
all: fix new lints
This commit is contained in:
parent
26d443aa50
commit
2c411fce5a
43 changed files with 351 additions and 316 deletions
|
@ -368,11 +368,9 @@ void DBusMenu::updateLayoutRecursive(
|
|||
auto childrenChanged = false;
|
||||
auto iter = item->mChildren.begin();
|
||||
while (iter != item->mChildren.end()) {
|
||||
auto existing = std::find_if(
|
||||
layout.children.begin(),
|
||||
layout.children.end(),
|
||||
[&](const DBusMenuLayout& layout) { return layout.id == *iter; }
|
||||
);
|
||||
auto existing = std::ranges::find_if(layout.children, [&](const DBusMenuLayout& layout) {
|
||||
return layout.id == *iter;
|
||||
});
|
||||
|
||||
if (!item->mShowChildren || existing == layout.children.end()) {
|
||||
qCDebug(logDbusMenu) << "Removing missing layout item" << this->items.value(*iter) << "from"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue