X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fseekable.h;h=68454d038bc31ff50118044292906af36dba6895;hb=9b38e20254913629a0db40e8eb8e1c42e1728e41;hp=f0170b40f5af126de2c641431d7a2033cc1f1415;hpb=1a6331551a025ddcc1772ae447c326ec70e0e107;p=libs%2Fcore.git diff --git a/source/io/seekable.h b/source/io/seekable.h index f0170b4..68454d0 100644 --- a/source/io/seekable.h +++ b/source/io/seekable.h @@ -1,8 +1,8 @@ #ifndef MSP_IO_SEEKABLE_H_ #define MSP_IO_SEEKABLE_H_ +#include #include -#include #include "base.h" namespace Msp { @@ -10,7 +10,7 @@ namespace IO { class Handle; -typedef Int64 SeekOffset; +typedef std::int64_t SeekOffset; enum SeekType { @@ -24,14 +24,14 @@ class bad_seek: public std::runtime_error { public: bad_seek(SeekOffset, SeekType); - virtual ~bad_seek() throw() { } + virtual ~bad_seek() throw() = default; }; class Seekable: public Base { protected: - Seekable() { } + Seekable() = default; public: /** Changes the read/write offset. Returns the new offset. */