]> git.tdb.fi Git - builder.git/blobdiff - source/buildinfo.cpp
Replace per-file copyright notices with a single file
[builder.git] / source / buildinfo.cpp
index 9ad0a557706b687d2a2775044c8fc55e6386019f..2bf928a9ba950f4676d8b011e7010907ee252722 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <algorithm>
 #include "buildinfo.h"
 
@@ -21,7 +14,7 @@ void unique(StringList &l)
                for(StringList::iterator j=i; j!=l.end();)
                {
                        if(j!=i && *j==*i)
-                               j=l.erase(j);
+                               j = l.erase(j);
                        else
                                ++j;
                }
@@ -52,23 +45,23 @@ void BuildInfo::unique()
 
        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);
        }
 }