X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fbase.cpp;h=9c2b40a1f2a9460eee16a34f6e0b08aab245786c;hb=7ad451f4b5e4352d15165f472a00cf33957a1687;hp=da2b5a98cb1c8db3f211b292137783b0c19d4e7d;hpb=169ece8b190040c4b61d68122c4ead1ba266cf79;p=libs%2Fcore.git diff --git a/source/io/base.cpp b/source/io/base.cpp index da2b5a9..9c2b40a 100644 --- a/source/io/base.cpp +++ b/source/io/base.cpp @@ -31,7 +31,7 @@ bool Base::getline(string &line) if(eof_flag) return false; - while(1) + while(!eof()) { int c = get(); if(c==-1 || c=='\n') @@ -59,11 +59,6 @@ void Base::set_eof() } } -const Handle &Base::get_handle(Mode) -{ - throw logic_error("Base::get_handle"); -} - Base::Synchronize::Synchronize(Base &i): io(i)