mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Task: Improved method signature
This commit is contained in:
parent
fab2979b87
commit
7e629ef30a
10 changed files with 21 additions and 49 deletions
|
@ -874,10 +874,7 @@ bool Variant::operator_match (const Variant& other, const Task& task) const
|
|||
// in the annotations.
|
||||
if (left.source () == "description")
|
||||
{
|
||||
std::map <std::string, std::string> annotations;
|
||||
task.getAnnotations (annotations);
|
||||
|
||||
for (auto& a : annotations)
|
||||
for (auto& a : task.getAnnotations ())
|
||||
if (r.match (a.second))
|
||||
return true;
|
||||
}
|
||||
|
@ -909,10 +906,7 @@ bool Variant::operator_match (const Variant& other, const Task& task) const
|
|||
// in the annotations.
|
||||
if (left.source () == "description")
|
||||
{
|
||||
std::map <std::string, std::string> annotations;
|
||||
task.getAnnotations (annotations);
|
||||
|
||||
for (auto& a : annotations)
|
||||
for (auto& a : task.getAnnotations ())
|
||||
if (find (a.second, pattern, searchCaseSensitive) != std::string::npos)
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue