recur: Code cleanup

This commit is contained in:
Paul Beckingham 2017-01-26 19:55:51 -05:00
parent 223ca89d73
commit e2633a2d76

View file

@ -204,12 +204,12 @@ bool generateDueDates (Task& parent, std::vector <Datetime>& allDue)
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Datetime getNextRecurrence (Datetime& current, std::string& period) Datetime getNextRecurrence (Datetime& current, std::string& period)
{ {
int m = current.month (); auto m = current.month ();
int d = current.day (); auto d = current.day ();
int y = current.year (); auto y = current.year ();
int ho = current.hour (); auto ho = current.hour ();
int mi = current.minute (); auto mi = current.minute ();
int se = current.second (); auto se = current.second ();
// Some periods are difficult, because they can be vague. // Some periods are difficult, because they can be vague.
if (period == "monthly" || if (period == "monthly" ||