From 2da0656b5edc0bd19028a8e9a4cc2dbe6b0217c1 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 26 Jan 2017 19:56:07 -0500 Subject: [PATCH] recur: Code cleanup --- src/recur.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/recur.cpp b/src/recur.cpp index 7e49d26aa..c07ce7eaa 100644 --- a/src/recur.cpp +++ b/src/recur.cpp @@ -378,14 +378,14 @@ Datetime getNextRecurrence (Datetime& current, std::string& period) // update it's mask. void updateRecurrenceMask (Task& task) { - std::string uuid = task.get ("parent"); + auto uuid = task.get ("parent"); Task parent; if (uuid != "" && context.tdb2.get (uuid, parent)) { unsigned int index = strtol (task.get ("imask").c_str (), NULL, 10); - std::string mask = parent.get ("mask"); + auto mask = parent.get ("mask"); if (mask.length () > index) { mask[index] = (task.getStatus () == Task::pending) ? '-'