]> git.tdb.fi Git - libs/core.git/blobdiff - source/formatter.cpp
Further style and comment adjustments
[libs/core.git] / source / formatter.cpp
index 8db3f4d56ebdc5b0e9af459f9a19006290e90043..d9d311d5f43813a921016f0694661ce5da67fed4 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of libmspstrings
+Copyright © 2006-2007 Mikko Rasa
+Distributed under the LGPL
+*/
+
 #include "formatter.h"
 
 using namespace std;
@@ -41,7 +48,7 @@ void Formatter::advance()
                                break;
                }
 
-               result+=*pos;
+               result += *pos;
        }
 }
 
@@ -54,7 +61,7 @@ Fmt Formatter::get_conversion()
        if(pos==fmt.end())
                throw Exception("Too many arguments for format");
 
-       string::iterator i=pos;
+       string::iterator i = pos;
        for(; i!=fmt.end(); ++i)
                if(isalpha(*i))
                        break;
@@ -64,7 +71,7 @@ Fmt Formatter::get_conversion()
 
        ++i;
        string c(pos, i);
-       pos=i;
+       pos = i;
 
        return Fmt(c);
 }