From d70df55c2d732390c38f59d6e31aa8c226c416e7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 26 Apr 2014 12:03:28 -0700 Subject: [PATCH] CmdBurndown - Converted from A3 to A3t. --- src/commands/CmdBurndown.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp index 77c2ef058..43feb041e 100644 --- a/src/commands/CmdBurndown.cpp +++ b/src/commands/CmdBurndown.cpp @@ -206,21 +206,19 @@ Chart::Chart (char type) // Set the title. _title = "("; - std::vector ::const_iterator arg; - for (arg = context.a3.begin (); arg != context.a3.end (); ++arg) + std::vector ::iterator i; + for (i = context.a3t.tree ()->_branches.begin (); i != context.a3t.tree ()->_branches.end (); ++i) { - if (arg->_category == Arg::cat_program || - arg->_category == Arg::cat_rc || - arg->_category == Arg::cat_override || - arg->_category == Arg::cat_command || - arg->_category == Arg::cat_terminator) - ; - else + if (! (*i)->hasTag ("BINARY") && + ! (*i)->hasTag ("RC") && + ! (*i)->hasTag ("CONFIG") && + ! (*i)->hasTag ("CMD") && + ! (*i)->hasTag ("TERMINATOR")) { if (_title.length () > 1) _title += " "; - _title += arg->_raw; + _title += (*i)->attribute ("raw"); } } _title += ")";