mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
make linter happy
This commit is contained in:
parent
8f4f67f69f
commit
9f0a14c22b
@ -73,7 +73,8 @@ void check_nn(const void *ptr, const char *message = "ptr was null") {
|
|||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
waybar::modules::Backlight::BacklightDev::BacklightDev(std::string name, int actual, int max, bool powered)
|
waybar::modules::Backlight::BacklightDev::BacklightDev(std::string name, int actual, int max,
|
||||||
|
bool powered)
|
||||||
: name_(std::move(name)), actual_(actual), max_(max), powered_(powered) {}
|
: name_(std::move(name)), actual_(actual), max_(max), powered_(powered) {}
|
||||||
|
|
||||||
std::string_view waybar::modules::Backlight::BacklightDev::name() const { return name_; }
|
std::string_view waybar::modules::Backlight::BacklightDev::name() const { return name_; }
|
||||||
|
@ -118,7 +118,7 @@ void IPC::unregisterForIPC(EventHandler* ev_handler) {
|
|||||||
|
|
||||||
callbackMutex.lock();
|
callbackMutex.lock();
|
||||||
|
|
||||||
for(auto it = callbacks.begin(); it != callbacks.end(); ) {
|
for (auto it = callbacks.begin(); it != callbacks.end();) {
|
||||||
auto it_current = it;
|
auto it_current = it;
|
||||||
it++;
|
it++;
|
||||||
auto& [eventname, handler] = *it_current;
|
auto& [eventname, handler] = *it_current;
|
||||||
|
@ -56,7 +56,7 @@ uint Window::getActiveWorkspaceID(std::string monitorName) {
|
|||||||
assert(json.isArray());
|
assert(json.isArray());
|
||||||
auto monitor = std::find_if(json.begin(), json.end(),
|
auto monitor = std::find_if(json.begin(), json.end(),
|
||||||
[&](Json::Value monitor) { return monitor["name"] == monitorName; });
|
[&](Json::Value monitor) { return monitor["name"] == monitorName; });
|
||||||
if(monitor == std::end(json)) {
|
if (monitor == std::end(json)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return (*monitor)["activeWorkspace"]["id"].as<uint>();
|
return (*monitor)["activeWorkspace"]["id"].as<uint>();
|
||||||
|
Loading…
Reference in New Issue
Block a user