- ::unsweetenAttributeModifiers no longer clobbers non-FILTER args.
This commit is contained in:
Paul Beckingham 2014-10-19 18:19:09 -04:00
parent 720cc57192
commit f809f2d819

View file

@ -640,6 +640,8 @@ void CLI::unsweetenAttributeModifiers ()
std::vector <A> reconstructed;
std::vector <A>::iterator a;
for (a = _args.begin (); a != _args.end (); ++a)
{
if (a->hasTag ("FILTER"))
{
// Look for a valid attribute name.
bool found = false;
@ -760,8 +762,6 @@ void CLI::unsweetenAttributeModifiers ()
{
op.attribute ("raw", "~");
op.tag ("OP");
#if defined (DARWIN)
rhs.attribute ("raw", value);
#elif defined (SOLARIS)
@ -774,7 +774,6 @@ void CLI::unsweetenAttributeModifiers ()
{
op.attribute ("raw", "!~");
op.tag ("OP");
#if defined (DARWIN)
rhs.attribute ("raw", value);
#elif defined (SOLARIS)
@ -799,6 +798,9 @@ void CLI::unsweetenAttributeModifiers ()
if (!found)
reconstructed.push_back (*a);
}
else
reconstructed.push_back (*a);
}
_args = reconstructed;
}