fix linting issues
This commit is contained in:
parent
e128c48573
commit
c1ceb7ac42
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue