From d533b526bfab9dc2dce4460eae98eb2e6771357d Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Sun, 13 Apr 2025 14:51:25 +0200 Subject: [PATCH] fix timetable const issue --- src/timetable.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/timetable.cpp b/src/timetable.cpp index de44700..285fbb5 100644 --- a/src/timetable.cpp +++ b/src/timetable.cpp @@ -552,7 +552,8 @@ void draw_days(WINDOW **&day_windows, uint16_t cell_height, uint8_t num_of_days, } void draw_lessons(WINDOW **&lesson_windows, uint8_t num_of_columns, - uint16_t cell_width, std::vector &HourIdLookupTable, + uint16_t cell_width, + const std::vector &HourIdLookupTable, const json &resp_from_api) { for (uint8_t i = 0; i < num_of_columns; i++) { wborder(lesson_windows[i], 0, 0, ' ', 0, ACS_VLINE, ACS_VLINE, 0, 0); @@ -597,7 +598,7 @@ void draw_lessons(WINDOW **&lesson_windows, uint8_t num_of_columns, void draw_cells(uint8_t num_of_columns, uint8_t num_of_days, uint16_t cell_width, uint16_t cell_height, std::vector> &cells, - std::vector &HourIdLookupTable, + const std::vector &HourIdLookupTable, const json &resp_from_api) { for (uint8_t i = 0; i < num_of_days; i++) { for (uint8_t j = 0; j < num_of_columns; j++) {