diff --git a/src/recur.cpp b/src/recur.cpp index 9c9907c37..7e49d26aa 100644 --- a/src/recur.cpp +++ b/src/recur.cpp @@ -229,7 +229,7 @@ Datetime getNextRecurrence (Datetime& current, std::string& period) else if (period == "weekdays") { - int dow = current.dayOfWeek (); + auto dow = current.dayOfWeek (); int days; if (dow == 5) days = 3;