X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Ffile.cpp;h=862b607c9d00e08db7ce4e10bc2843ba1bd473ba;hp=90326093b8b643751446d83658a4b2583dbf3fbb;hb=f041a31f9a6e19da86a63912e5a8050f216e5bc5;hpb=d16185720fa344263367dbd50c61bfc8183d99a4 diff --git a/source/io/file.cpp b/source/io/file.cpp index 9032609..862b607 100644 --- a/source/io/file.cpp +++ b/source/io/file.cpp @@ -88,7 +88,6 @@ File::~File() { signal_flush_required.emit(); sys_close(handle); - signal_closed.emit(); } void File::set_block(bool b) @@ -154,5 +153,11 @@ SeekOffset File::tell() const return sys_seek(const_cast(handle), 0, S_CUR); } +const Handle &File::get_handle(Mode m) +{ + check_access(m); + return handle; +} + } // namespace IO } // namespace Msp