recur: Code cleanup
This commit is contained in:
@@ -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" ||
|
||||||
|
|||||||
Reference in New Issue
Block a user