From 793b23411a1d85aff2329337499a5ca348f219e2 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 16 Oct 2021 10:10:14 -0400 Subject: [PATCH] CmdUDAs: Do not identify tags and dependencies as orphan UDAs --- src/commands/CmdUDAs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdUDAs.cpp b/src/commands/CmdUDAs.cpp index 83e4ad01c..eaa8dc03e 100644 --- a/src/commands/CmdUDAs.cpp +++ b/src/commands/CmdUDAs.cpp @@ -35,6 +35,7 @@ #include #include #include +#include //////////////////////////////////////////////////////////////////////////////// CmdUDAs::CmdUDAs () @@ -134,7 +135,9 @@ int CmdUDAs::execute (std::string& output) for (auto& i : filtered) { for (auto& att : i.data) - if (att.first.substr (0, 11) != "annotation_" && + if (! Task::isAnnotationAttr (att.first) && + ! Task::isTagAttr (att.first) && + ! Task::isDepAttr (att.first) && Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ()) orphans[att.first]++; }