fix linting issues

pull/1975/head
Brent George 2023-01-24 14:53:49 -05:00
parent e128c48573
commit c1ceb7ac42
2 changed files with 3 additions and 6 deletions

View File

@ -97,7 +97,7 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name) const {
} }
if (ref == "disk") { if (ref == "disk") {
return new waybar::modules::Disk(id, config_[name]); return new waybar::modules::Disk(id, config_[name]);
} }
if (ref == "image") { if (ref == "image") {
return new waybar::modules::Image(id, config_[name]); return new waybar::modules::Image(id, config_[name]);
} }

View File

@ -1,10 +1,7 @@
#include "modules/image.hpp" #include "modules/image.hpp"
waybar::modules::Image::Image(const std::string& id, waybar::modules::Image::Image(const std::string& id, const Json::Value& config)
const Json::Value& config) : AModule(config, "image", id), box_(Gtk::ORIENTATION_HORIZONTAL, 0) {
: AModule(config, "image", id),
box_(Gtk::ORIENTATION_HORIZONTAL, 0)
{
box_.pack_start(image_); box_.pack_start(image_);
box_.set_name("image"); box_.set_name("image");
if (!id.empty()) { if (!id.empty()) {