X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.cpp;h=d74c8efde0a943fb8cdb11f8f4f3281f88d21d9a;hb=cbd0ddd6ee033e46646bfb85d19232c816ea1eda;hp=f3f8f23f3343fa9352a618c82f8c151f2811573e;hpb=e26f7e98e5d8a5666192a43348b3ca7a35f6b860;p=libs%2Fdatafile.git diff --git a/source/input.cpp b/source/input.cpp index f3f8f23..d74c8ef 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -17,9 +17,9 @@ Input::Input(IO::Base &i): int Input::get() { - int c=next; - next=-1; - if(c<0) c=in.get(); + int c = next; + next = -1; + if(c<0) c = in.get(); if(c=='\n') ++line; @@ -30,7 +30,7 @@ int Input::get() int Input::peek() { if(next<0) - next=in.get(); + next = in.get(); return next; }