From e2633a2d76f25cfcd51f95e1b929b7ef04f45659 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 26 Jan 2017 19:55:51 -0500 Subject: [PATCH] recur: Code cleanup --- src/recur.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/recur.cpp b/src/recur.cpp index 3ae64d77b..9c9907c37 100644 --- a/src/recur.cpp +++ b/src/recur.cpp @@ -204,12 +204,12 @@ bool generateDueDates (Task& parent, std::vector & allDue) //////////////////////////////////////////////////////////////////////////////// Datetime getNextRecurrence (Datetime& current, std::string& period) { - int m = current.month (); - int d = current.day (); - int y = current.year (); - int ho = current.hour (); - int mi = current.minute (); - int se = current.second (); + auto m = current.month (); + auto d = current.day (); + auto y = current.year (); + auto ho = current.hour (); + auto mi = current.minute (); + auto se = current.second (); // Some periods are difficult, because they can be vague. if (period == "monthly" ||