fix: lint
parent
ba6faa7859
commit
60e0584d16
|
@ -15,7 +15,7 @@ class AModule : public IModule {
|
|||
auto update() -> void override;
|
||||
virtual auto refresh(int) -> void{};
|
||||
operator Gtk::Widget &() override;
|
||||
auto doAction(const std::string& name) -> void override;
|
||||
auto doAction(const std::string &name) -> void override;
|
||||
|
||||
Glib::Dispatcher dp;
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
#include "modules/wlr/workspace_manager.hpp"
|
||||
#endif
|
||||
#ifdef HAVE_RIVER
|
||||
#include "modules/river/layout.hpp"
|
||||
#include "modules/river/mode.hpp"
|
||||
#include "modules/river/tags.hpp"
|
||||
#include "modules/river/window.hpp"
|
||||
#include "modules/river/layout.hpp"
|
||||
#endif
|
||||
#ifdef HAVE_HYPRLAND
|
||||
#include "modules/hyprland/backend.hpp"
|
||||
|
|
|
@ -15,10 +15,7 @@ enum class WeeksSide {
|
|||
HIDDEN,
|
||||
};
|
||||
|
||||
enum class CldMode {
|
||||
MONTH,
|
||||
YEAR
|
||||
};
|
||||
enum class CldMode { MONTH, YEAR };
|
||||
|
||||
class Clock final : public ALabel {
|
||||
public:
|
||||
|
@ -64,12 +61,11 @@ class Clock final : public ALabel {
|
|||
void tz_down();
|
||||
|
||||
// ModuleActionMap
|
||||
static inline std::map<const std::string, void(waybar::modules::Clock::* const)()> actionMap_{
|
||||
{"mode", &waybar::modules::Clock::cldModeSwitch},
|
||||
{"shift_up", &waybar::modules::Clock::cldShift_up},
|
||||
{"shift_down", &waybar::modules::Clock::cldShift_down},
|
||||
{"tz_up", &waybar::modules::Clock::tz_up},
|
||||
{"tz_down", &waybar::modules::Clock::tz_down}
|
||||
};
|
||||
static inline std::map<const std::string, void (waybar::modules::Clock::*const)()> actionMap_{
|
||||
{"mode", &waybar::modules::Clock::cldModeSwitch},
|
||||
{"shift_up", &waybar::modules::Clock::cldShift_up},
|
||||
{"shift_down", &waybar::modules::Clock::cldShift_down},
|
||||
{"tz_up", &waybar::modules::Clock::tz_up},
|
||||
{"tz_down", &waybar::modules::Clock::tz_down}};
|
||||
};
|
||||
} // namespace waybar::modules
|
||||
|
|
|
@ -989,7 +989,7 @@ struct Help : Opt {
|
|||
showHelpFlag = flag;
|
||||
return ParserResult::ok(ParseResultType::ShortCircuitAll);
|
||||
}) {
|
||||
static_cast<Opt &> (*this)("display usage information")["-?"]["-h"]["--help"].optional();
|
||||
static_cast<Opt &>(*this)("display usage information")["-?"]["-h"]["--help"].optional();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#include "modules/mpris/mpris.hpp"
|
||||
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include <optional>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
#include "modules/mpris/mpris.hpp"
|
||||
|
||||
extern "C" {
|
||||
#include <playerctl/playerctl.h>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue