fix: lint

pull/1941/head
Alex 2023-01-23 09:25:02 +01:00
parent 5182fadede
commit f4cfafd238
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class AModule : public IModule {
bool enable_scroll = false);
virtual ~AModule();
virtual auto update() -> void;
virtual auto refresh(int) -> void {};
virtual auto refresh(int) -> void{};
virtual operator Gtk::Widget &();
Glib::Dispatcher dp;

View File

@ -210,7 +210,7 @@ void waybar::modules::Custom::parseOutputJson() {
}
}
if (!parsed["percentage"].asString().empty() && parsed["percentage"].isNumeric()) {
percentage_ = (int) lround(parsed["percentage"].asFloat());
percentage_ = (int)lround(parsed["percentage"].asFloat());
} else {
percentage_ = 0;
}