mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Expressions
- DOM::get now returns the input name by default, rather than "", which was the cause of many filter elements not working. - Modified Variant to have no private data, which means fewer copies of Variants and less code. - Eliminated Variant::operator^ - not needed.
This commit is contained in:
parent
7762ee2f9e
commit
1bf6c8a9fa
4 changed files with 201 additions and 260 deletions
|
@ -156,7 +156,7 @@ const std::string DOM::get (const std::string& name)
|
|||
throw format (STRING_DOM_UNREC, name);
|
||||
}
|
||||
|
||||
return "";
|
||||
return name;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -300,7 +300,6 @@ void DOM::set (const std::string& name, const std::string& value)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO This should return a Variant.
|
||||
bool DOM::is_primitive (const std::string& input)
|
||||
{
|
||||
std::string s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue