diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/engine-eds.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp index 856f190..2b62fd1 100644 --- a/src/engine-eds.cpp +++ b/src/engine-eds.cpp @@ -25,6 +25,7 @@ #include <libedataserver/libedataserver.h> #include <algorithm> // std::sort() +#include <array> #include <ctime> // time() #include <map> #include <set> @@ -523,7 +524,7 @@ private: (status != ICAL_STATUS_COMPLETED) && (status != ICAL_STATUS_CANCELLED)) { - ECalComponentAlarmAction omit[] = { (ECalComponentAlarmAction)-1 }; // list of action types to omit, terminated with -1 + std::array<ECalComponentAlarmAction,1> omit = { (ECalComponentAlarmAction)-1 }; // list of action types to omit, terminated with -1 Appointment appointment; ECalComponentText text {}; @@ -543,7 +544,7 @@ private: auto e_alarms = e_cal_util_generate_alarms_for_comp(component, subtask->begin, subtask->end, - omit, + omit.data(), e_cal_client_resolve_tzid_cb, subtask->client, subtask->default_timezone); |