Use filter IntervalFilterFirstOf in CmdContinue

Relates to #468

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2021-11-07 14:39:31 +01:00
parent 244b351118
commit 9cd693d55d

View file

@ -31,6 +31,7 @@
#include <cassert>
#include <IntervalFilterAllWithIds.h>
#include <IntervalFilterAllWithTags.h>
#include <IntervalFilterFirstOf.h>
////////////////////////////////////////////////////////////////////////////////
int CmdContinue (
@ -77,7 +78,7 @@ int CmdContinue (
}
else if (!filter.tags ().empty ())
{
auto filtering = IntervalFilterAllWithTags (filter.tags());
auto filtering = IntervalFilterFirstOf { new IntervalFilterAllWithTags (filter.tags ())};
auto tracked = getTracked (database, rules, filtering);
if (tracked.empty())