mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task
- Converted from OldDuration to Duration.
This commit is contained in:
parent
dead140c74
commit
9c5222be8f
1 changed files with 4 additions and 3 deletions
|
@ -38,7 +38,7 @@
|
|||
#include <Tree.h>
|
||||
#endif
|
||||
#include <Date.h>
|
||||
#include <OldDuration.h>
|
||||
#include <Duration.h>
|
||||
#include <Task.h>
|
||||
#include <JSON.h>
|
||||
#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")));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue