mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix - Att::match
- Fixed Att::match bug that succeeded when no modifiers were present.
This commit is contained in:
parent
9d48faa759
commit
cf67e0142c
3 changed files with 10 additions and 19 deletions
|
@ -194,6 +194,11 @@ bool Att::validMod (const std::string& mod) const
|
|||
// Record that does not have modifiers, but may have a value.
|
||||
bool Att::match (const Att& other) const
|
||||
{
|
||||
// If there are no mods, just perform a straight compares on value.
|
||||
if (mMods.size () == 0)
|
||||
if (mName != other.mName || mValue != other.mValue)
|
||||
return false;
|
||||
|
||||
// Assume a match, and short-circuit on mismatch.
|
||||
foreach (mod, mMods)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue