fix: lint

This commit is contained in:
Alex 2023-04-03 09:41:24 +02:00
parent ba6faa7859
commit 60e0584d16
5 changed files with 12 additions and 16 deletions

View File

@ -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;

View File

@ -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"

View File

@ -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

View File

@ -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();
}
};

View File

@ -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>
}