fix: lint

pull/2404/head
Alex 2023-08-14 14:20:08 +02:00
parent cc961d40b3
commit db1d859881
2 changed files with 7 additions and 9 deletions

View File

@ -59,10 +59,8 @@ class Clock final : public ALabel {
std::string cldMonCached_{}; std::string cldMonCached_{};
date::day cldBaseDay_{0}; date::day cldBaseDay_{0};
/*Calendar functions*/ /*Calendar functions*/
auto get_calendar(const date::year_month_day& today, auto get_calendar(const date::year_month_day& today, const date::year_month_day& ymd,
const date::year_month_day& ymd, const date::time_zone* tz) -> const std::string;
const date::time_zone* tz)
-> const std::string;
/*Clock actions*/ /*Clock actions*/
void cldModeSwitch(); void cldModeSwitch();
void cldShift_up(); void cldShift_up();

View File

@ -28,11 +28,11 @@ AModule::AModule(const Json::Value& config, const std::string& name, const std::
// configure events' user commands // configure events' user commands
bool hasEvent = std::find_if(eventMap_.cbegin(), eventMap_.cend(), bool hasEvent =
[&config](const auto& eventEntry) { std::find_if(eventMap_.cbegin(), eventMap_.cend(), [&config](const auto& eventEntry) {
return config[eventEntry.second].isString(); return config[eventEntry.second].isString();
}) != eventMap_.cend(); }) != eventMap_.cend();
if (enable_click || hasEvent) { if (enable_click || hasEvent) {
event_box_.add_events(Gdk::BUTTON_PRESS_MASK); event_box_.add_events(Gdk::BUTTON_PRESS_MASK);
event_box_.signal_button_press_event().connect(sigc::mem_fun(*this, &AModule::handleToggle)); event_box_.signal_button_press_event().connect(sigc::mem_fun(*this, &AModule::handleToggle));