-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <algorithm>
#include "buildinfo.h"
for(StringList::iterator j=i; j!=l.end();)
{
if(j!=i && *j==*i)
- j=l.erase(j);
+ j = l.erase(j);
else
++j;
}
for(StringList::iterator i=warnings.begin(); i!=warnings.end(); ++i)
{
- bool flag=i->compare(0, 3, "no-");
+ bool flag = i->compare(0, 3, "no-");
- string warn=(flag ? *i : i->substr(3));
- string no_warn="no-"+warn;
+ string warn = (flag ? *i : i->substr(3));
+ string no_warn = "no-"+warn;
for(StringList::iterator j=i; j!=warnings.end();)
{
if(j!=i && (*j==warn || *j==no_warn))
{
- flag=(*j==warn);
- j=warnings.erase(j);
+ flag = (*j==warn);
+ j = warnings.erase(j);
}
else
++j;
}
- *i=(flag ? warn : no_warn);
+ *i = (flag ? warn : no_warn);
}
}