]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/zlibcompressed.h
Add move semantics to Variant
[libs/core.git] / source / io / zlibcompressed.h
index eb35f6ce1b8c7c7b33e25cf86f39d36f83b8f782..1dc15697fc3e59089ac745fe16aa42a5aaff8094 100644 (file)
@@ -4,21 +4,21 @@
 #include <stdexcept>
 #include <string>
 #include <sigc++/trackable.h>
+#include <msp/core/mspcore_api.h>
 #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;