From 5cb753fd23e0b1f0fdc0e57c2658f0fdb16f2fb4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 25 Oct 2014 23:10:37 -0400 Subject: [PATCH] CmdDenotate - Converted from Parser to CLI. --- src/commands/CmdDenotate.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/commands/CmdDenotate.cpp b/src/commands/CmdDenotate.cpp index 17845f515..2c4cd3fed 100644 --- a/src/commands/CmdDenotate.cpp +++ b/src/commands/CmdDenotate.cpp @@ -66,18 +66,16 @@ int CmdDenotate::execute (std::string& output) // Extract all the ORIGINAL MODIFICATION args as simple text patter. std::string pattern = ""; - std::vector ::iterator arg; - for (arg = context.parser.tree ()->_branches.begin (); - arg != context.parser.tree ()->_branches.end (); - ++arg) + std::vector ::iterator a; + for (a = context.cli._args.begin (); a != context.cli._args.end (); ++a) { - if ((*arg)->hasTag ("ORIGINAL") && - (*arg)->hasTag ("MODIFICATION")) + if (a->hasTag ("ORIGINAL") && + a->hasTag ("MODIFICATION")) { if (pattern != "") pattern += ' '; - pattern += (*arg)->attribute ("raw"); + pattern += a->attribute ("raw"); } }