mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-05 23:17:20 +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>
|
#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")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue