diff --git a/src/Chart.cpp b/src/Chart.cpp index 2ed476b5..c2b0aa2d 100644 --- a/src/Chart.cpp +++ b/src/Chart.cpp @@ -131,7 +131,7 @@ std::string Chart::render ( } auto now = Datetime (); - auto color_day = getDayColor (day, now, holidays, color_today, color_holiday); + auto color_day = getDayColor (day, now, holidays); auto labelMonth = with_label_month ? renderMonth (previous, day) : ""; auto labelWeek = with_label_week ? renderWeek (previous, day) : ""; @@ -326,24 +326,22 @@ std::string Chart::renderDay (Datetime &day, const Color &color) Color Chart::getDayColor ( const Datetime &day, const Datetime &now, - const std::map &holidays, - const Color &colorToday, - const Color &colorHoliday) + const std::map &holidays) { if (day.sameDay (now)) { - return colorToday; + return color_today; } for (auto &entry : holidays) { if (day.sameDay (entry.first)) { - return colorHoliday; + return color_holiday; } } - return Color{}; + return Color {}; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/Chart.h b/src/Chart.h index 88789d6a..3330abb1 100644 --- a/src/Chart.h +++ b/src/Chart.h @@ -57,7 +57,7 @@ private: std::pair determineHourRange (const Interval&, const std::vector &); - Color getDayColor (const Datetime&, const Datetime&, const std::map &, const Color&, const Color&); + Color getDayColor (const Datetime &, const Datetime &, const std::map &); const bool with_label_month; const bool with_label_week;