fix: lint
This commit is contained in:
parent
5182fadede
commit
f4cfafd238
|
@ -15,7 +15,7 @@ class AModule : public IModule {
|
||||||
bool enable_scroll = false);
|
bool enable_scroll = false);
|
||||||
virtual ~AModule();
|
virtual ~AModule();
|
||||||
virtual auto update() -> void;
|
virtual auto update() -> void;
|
||||||
virtual auto refresh(int) -> void {};
|
virtual auto refresh(int) -> void{};
|
||||||
virtual operator Gtk::Widget &();
|
virtual operator Gtk::Widget &();
|
||||||
|
|
||||||
Glib::Dispatcher dp;
|
Glib::Dispatcher dp;
|
||||||
|
|
|
@ -210,7 +210,7 @@ void waybar::modules::Custom::parseOutputJson() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!parsed["percentage"].asString().empty() && parsed["percentage"].isNumeric()) {
|
if (!parsed["percentage"].asString().empty() && parsed["percentage"].isNumeric()) {
|
||||||
percentage_ = (int) lround(parsed["percentage"].asFloat());
|
percentage_ = (int)lround(parsed["percentage"].asFloat());
|
||||||
} else {
|
} else {
|
||||||
percentage_ = 0;
|
percentage_ = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue