Task
- Converted from OldDuration to Duration.
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
#include <Tree.h>
|
#include <Tree.h>
|
||||||
#endif
|
#endif
|
||||||
#include <Date.h>
|
#include <Date.h>
|
||||||
#include <OldDuration.h>
|
#include <Duration.h>
|
||||||
#include <Task.h>
|
#include <Task.h>
|
||||||
#include <JSON.h>
|
#include <JSON.h>
|
||||||
#ifdef PRODUCT_TASKWARRIOR
|
#ifdef PRODUCT_TASKWARRIOR
|
||||||
@@ -1574,8 +1574,9 @@ void Task::validate (bool applyDefault /* = true */)
|
|||||||
// Recur durations must be valid.
|
// Recur durations must be valid.
|
||||||
if (has ("recur"))
|
if (has ("recur"))
|
||||||
{
|
{
|
||||||
OldDuration d;
|
Duration d;
|
||||||
if (! d.valid (get ("recur")))
|
std::string::size_type i = 0;
|
||||||
|
if (! d.parse (get ("recur"), i))
|
||||||
throw std::string (format (STRING_TASK_VALID_RECUR, get ("recur")));
|
throw std::string (format (STRING_TASK_VALID_RECUR, get ("recur")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user