X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fzlibcompressed.h;h=1dc15697fc3e59089ac745fe16aa42a5aaff8094;hb=0b51556bd22d9d9c2dc10692fc3c1feb3c6e98b3;hp=eb35f6ce1b8c7c7b33e25cf86f39d36f83b8f782;hpb=991fabc1956b73a4007859058fb44171000b452e;p=libs%2Fcore.git diff --git a/source/io/zlibcompressed.h b/source/io/zlibcompressed.h index eb35f6c..1dc1569 100644 --- a/source/io/zlibcompressed.h +++ b/source/io/zlibcompressed.h @@ -4,21 +4,21 @@ #include #include #include +#include #include "base.h" namespace Msp { namespace IO { -class zlib_error: public std::runtime_error +class MSPCORE_API zlib_error: public std::runtime_error { private: int m_code; public: zlib_error(const std::string &, int); - ~zlib_error() throw() override = default; - int code() const throw() { return m_code; } + int code() const noexcept { return m_code; } }; /** @@ -28,7 +28,7 @@ operates on top of another I/O object. To ensure proper termination of the compressed data stream, the ZlibCompressed object must be destroyed before the underlying object is closed. */ -class ZlibCompressed: public Base, public sigc::trackable +class MSPCORE_API ZlibCompressed: public Base, public sigc::trackable { private: struct Private;