Cleanup use of pointers in util code

This commit is contained in:
patrick96
2022-03-06 17:44:48 +01:00
committed by Patrick Ziegler
parent 8ddf9d2cdf
commit 50eac859fd
26 changed files with 117 additions and 197 deletions

View File

@ -71,9 +71,9 @@ namespace modules {
sleep(75ms);
}
bool backlight_module::on_event(inotify_event* event) {
if (event != nullptr) {
m_log.trace("%s: %s", name(), event->filename);
bool backlight_module::on_event(const inotify_event& event) {
if (event.is_valid) {
m_log.trace("%s: %s", name(), event.filename);
}
m_max_brightness = m_max.read();
@ -141,6 +141,6 @@ namespace modules {
name(), err.what());
}
}
} // namespace modules
} // namespace modules
POLYBAR_NS_END