Formatting

pull/1722/head
Samuel Grahn 2022-10-15 12:05:49 +02:00
parent 8a360957f4
commit c41c86da13
1 changed files with 65 additions and 66 deletions

View File

@ -132,7 +132,6 @@ auto waybar::modules::CustomList::update() -> void {
}
bool needReorder = false;
for(auto res = results_.begin(); res != results_.end(); res++) {
std::string name = (*res)["name"].asString();
auto bit = buttons_.find(name);
if(bit == buttons_.end()) {
@ -195,7 +194,7 @@ auto waybar::modules::CustomList::update() -> void {
}
}
for(auto prev : prev_) {
void name()or(auto prev : prev_) {
auto res_it = std::find_if(results_.begin(), results_.end(), [prev](auto it) {
return it["name"] == prev["name"];
});