Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Aug 14, 2023
1 parent cc961d4 commit db1d859
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions include/modules/clock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ class Clock final : public ALabel {
std::string cldMonCached_{};
date::day cldBaseDay_{0};
/*Calendar functions*/
auto get_calendar(const date::year_month_day& today,
const date::year_month_day& ymd,
const date::time_zone* tz)
-> const std::string;
auto get_calendar(const date::year_month_day& today, const date::year_month_day& ymd,
const date::time_zone* tz) -> const std::string;
/*Clock actions*/
void cldModeSwitch();
void cldShift_up();
Expand Down
10 changes: 5 additions & 5 deletions src/AModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ AModule::AModule(const Json::Value& config, const std::string& name, const std::

// configure events' user commands

bool hasEvent = std::find_if(eventMap_.cbegin(), eventMap_.cend(),
[&config](const auto& eventEntry) {
return config[eventEntry.second].isString();
}) != eventMap_.cend();
bool hasEvent =
std::find_if(eventMap_.cbegin(), eventMap_.cend(), [&config](const auto& eventEntry) {
return config[eventEntry.second].isString();
}) != eventMap_.cend();

if (enable_click || hasEvent) {
event_box_.add_events(Gdk::BUTTON_PRESS_MASK);
event_box_.signal_button_press_event().connect(sigc::mem_fun(*this, &AModule::handleToggle));
Expand Down

0 comments on commit db1d859

Please sign in to comment.