refactor(modules): const bar

This commit is contained in:
Alexis
2018-12-01 00:10:41 +01:00
parent 281bab4943
commit 691fb88057
11 changed files with 17 additions and 17 deletions

View File

@ -12,7 +12,7 @@ namespace waybar::modules::sway {
class Workspaces : public IModule {
public:
Workspaces(waybar::Bar&, const Json::Value&);
Workspaces(const waybar::Bar&, const Json::Value&);
auto update() -> void;
operator Gtk::Widget &();
private:
@ -23,7 +23,7 @@ class Workspaces : public IModule {
std::string getPrevWorkspace();
std::string getNextWorkspace();
Bar& bar_;
const Bar& bar_;
const Json::Value& config_;
waybar::util::SleeperThread thread_;
Gtk::Box box_;