]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/zlibcompressed.h
Modernize noexcept specifiers
[libs/core.git] / source / io / zlibcompressed.h
index 7a7973425bdcc573f48b65b838b062adf416b6d5..67cd6731de1f317c34a8d76abf79afd26096bdf0 100644 (file)
@@ -16,9 +16,8 @@ private:
 
 public:
        zlib_error(const std::string &, int);
-       virtual ~zlib_error() throw() = default;
 
-       int code() const throw() { return m_code; }
+       int code() const noexcept { return m_code; }
 };
 
 /**
@@ -50,15 +49,15 @@ public:
        write, and compatible with the underlying object. */
        ZlibCompressed(Base &, Mode, unsigned level = 9);
 
-       virtual ~ZlibCompressed();
+       ~ZlibCompressed() override;
 
-       virtual void set_block(bool);
-       virtual void set_inherit(bool);
+       void set_block(bool) override;
+       void set_inherit(bool) override;
 
        void flush();
 
 protected:
-       virtual std::size_t do_write(const char *, std::size_t);
+       std::size_t do_write(const char *, std::size_t) override;
 
 private:
        /** Compresses data and writes it to the underlying object.  Returns true if
@@ -68,9 +67,9 @@ private:
        bool compress_data(int flush_mode);
 
 public:
-       virtual std::size_t do_read(char *, std::size_t);
+       std::size_t do_read(char *, std::size_t) override;
 
-       virtual const Handle &get_handle(Mode);
+       const Handle &get_handle(Mode) override;
 };
 
 } // namespace IO