mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Variant
- ::operator== uses a caseless compare for the status attribute.
This commit is contained in:
parent
2a3c5e59c7
commit
13bbcba3f9
1 changed files with 6 additions and 3 deletions
|
@ -840,10 +840,13 @@ bool Variant::operator== (const Variant& other) const
|
|||
case type_boolean:
|
||||
case type_integer:
|
||||
case type_real:
|
||||
right.cast (type_string);
|
||||
return left._string == right._string;
|
||||
|
||||
case type_string:
|
||||
right.cast (type_string);
|
||||
|
||||
// Status is always compared caseless.
|
||||
if (left.source () == "status")
|
||||
return compare (left._string, right._string, false);
|
||||
|
||||
return left._string == right._string;
|
||||
|
||||
case type_date:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue