X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.cpp;h=4496439fcd393d3898dba41c8d48a0fcba2c245c;hb=refs%2Fheads%2Fwip;hp=4a44dea05228ae14d1d91e698ebe4eecf98cb662;hpb=73ef0d0378ba1c987f99522ba904cba9fd4b0ad4;p=libs%2Fdatafile.git diff --git a/source/input.cpp b/source/input.cpp index 4a44dea..4496439 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -5,10 +5,7 @@ namespace Msp { namespace DataFile { Input::Input(IO::Base &i): - in(&i), - compressed(0), - line(1), - next(-1) + in(&i) { } Input::~Input() @@ -42,10 +39,5 @@ int Input::peek() return next; } -Input::operator bool() const -{ - return next>=0 || !in->eof(); -} - } // namespace DataFile } // namespace Msp