diff --git a/include/modules/wlr/taskbar.hpp b/include/modules/wlr/taskbar.hpp index 069521a53..34dc24d65 100644 --- a/include/modules/wlr/taskbar.hpp +++ b/include/modules/wlr/taskbar.hpp @@ -139,7 +139,7 @@ class Taskbar : public waybar::AModule { public: Taskbar(const std::string &, const waybar::Bar &, const Json::Value &); ~Taskbar(); - void update(); + auto update() -> void override; auto doAction(const std::string &) -> void override; private: diff --git a/src/modules/wlr/taskbar.cpp b/src/modules/wlr/taskbar.cpp index 62b0560e7..6755b0ec5 100644 --- a/src/modules/wlr/taskbar.cpp +++ b/src/modules/wlr/taskbar.cpp @@ -806,8 +806,7 @@ Taskbar::Taskbar(const std::string &id, const waybar::Bar &bar, const Json::Valu actions.end()) { task_actions_.emplace(t, config["actions"][t].asString()); } else { - spdlog::warn( - std::format("wlr/taskbar: unknown action {}", config["actions"][t].asString())); + spdlog::warn("wlr/taskbar: unknown action {}", config["actions"][t].asString()); } } @@ -817,11 +816,11 @@ Taskbar::Taskbar(const std::string &id, const waybar::Bar &bar, const Json::Valu if (config_[t].isString() && std::find(actions.begin(), actions.end(), config_[t].asString()) != actions.end()) { if (task_actions_.emplace(t, config_[t].asString()).second) { - spdlog::warn(std::format("wlr/taskbar: {} action should be within actions object", t)); + spdlog::warn("wlr/taskbar: {} action should be within actions object", t); } else { - spdlog::warn(std::format( + spdlog::warn( "wlr/taskbar: ignoring action {} because there is another within the actions object", - t)); + t); } } }