mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
Lexer: Relocated instantiation closer to first use
This commit is contained in:
parent
a7eb32272c
commit
1ec029be9b
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,6 @@ bool Lexer::isDate (std::string& token, Lexer::Type& type)
|
|||
bool Lexer::isDuration (std::string& token, Lexer::Type& type)
|
||||
{
|
||||
std::size_t marker = _cursor;
|
||||
ISO8601p iso;
|
||||
|
||||
std::string extractedToken;
|
||||
Lexer::Type extractedType;
|
||||
|
@ -453,6 +452,7 @@ bool Lexer::isDuration (std::string& token, Lexer::Type& type)
|
|||
}
|
||||
|
||||
marker = 0;
|
||||
ISO8601p iso;
|
||||
if (iso.parse (_text.substr (_cursor), marker))
|
||||
{
|
||||
type = Lexer::Type::duration;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue