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
|
@ -190,11 +190,9 @@ void DBusPropertyGroup::updateAllViaGetAll() {
|
|||
|
||||
void DBusPropertyGroup::updatePropertySet(const QVariantMap& properties, bool complainMissing) {
|
||||
for (const auto [name, value]: properties.asKeyValueRange()) {
|
||||
auto prop = std::find_if(
|
||||
this->properties.begin(),
|
||||
this->properties.end(),
|
||||
[&name](DBusPropertyCore* prop) { return prop->nameRef() == name; }
|
||||
);
|
||||
auto prop = std::ranges::find_if(this->properties, [&name](DBusPropertyCore* prop) {
|
||||
return prop->nameRef() == name;
|
||||
});
|
||||
|
||||
if (prop == this->properties.end()) {
|
||||
qCDebug(logDbusProperties) << "Ignoring untracked property update" << name << "for"
|
||||
|
@ -312,11 +310,9 @@ void DBusPropertyGroup::onPropertiesChanged(
|
|||
<< "Received property change set and invalidations for" << this->toString();
|
||||
|
||||
for (const auto& name: invalidatedProperties) {
|
||||
auto prop = std::find_if(
|
||||
this->properties.begin(),
|
||||
this->properties.end(),
|
||||
[&name](DBusPropertyCore* prop) { return prop->nameRef() == name; }
|
||||
);
|
||||
auto prop = std::ranges::find_if(this->properties, [&name](DBusPropertyCore* prop) {
|
||||
return prop->nameRef() == name;
|
||||
});
|
||||
|
||||
if (prop == this->properties.end()) {
|
||||
qCDebug(logDbusProperties) << "Ignoring untracked property invalidation" << name << "for"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue