From 9c5222be8f8d78d64a31d078d22a302a771779fa Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 May 2014 21:03:59 -0400 Subject: [PATCH] Task - Converted from OldDuration to Duration. --- src/Task.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index e96f12365..9f9bf9947 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -38,7 +38,7 @@ #include #endif #include -#include +#include #include #include #ifdef PRODUCT_TASKWARRIOR @@ -1574,8 +1574,9 @@ void Task::validate (bool applyDefault /* = true */) // Recur durations must be valid. if (has ("recur")) { - OldDuration d; - if (! d.valid (get ("recur"))) + Duration d; + std::string::size_type i = 0; + if (! d.parse (get ("recur"), i)) throw std::string (format (STRING_TASK_VALID_RECUR, get ("recur"))); }