Portability

- Fixed code that generated warning on Ubuntu.
This commit is contained in:
Paul Beckingham 2012-03-14 17:53:24 -04:00
parent 2c90bca134
commit 773b028865

View file

@ -208,13 +208,9 @@ Chart::Chart (char type)
// Set the title. // Set the title.
title = "("; title = "(";
bool before_command = true;
std::vector <Arg>::const_iterator arg; std::vector <Arg>::const_iterator arg;
for (arg = context.a3.begin (); arg != context.a3.end (); ++arg) for (arg = context.a3.begin (); arg != context.a3.end (); ++arg)
{ {
if (arg->_category == Arg::cat_command)
before_command = false;
if (arg->_category == Arg::cat_program || if (arg->_category == Arg::cat_program ||
arg->_category == Arg::cat_rc || arg->_category == Arg::cat_rc ||
arg->_category == Arg::cat_override || arg->_category == Arg::cat_override ||