X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fzlibcompressed.h;h=7a7973425bdcc573f48b65b838b062adf416b6d5;hb=d15b96b498d7cad51a0cb1dd949f70a04af246e9;hp=f31bb2385a28a7dc7c40ef4432501ee89cae8661;hpb=122846f0881673770d88eff7d925ecf25c01b62e;p=libs%2Fcore.git diff --git a/source/io/zlibcompressed.h b/source/io/zlibcompressed.h index f31bb23..7a79734 100644 --- a/source/io/zlibcompressed.h +++ b/source/io/zlibcompressed.h @@ -12,13 +12,13 @@ namespace IO { class zlib_error: public std::runtime_error { private: - int code_; + int m_code; public: zlib_error(const std::string &, int); - ~zlib_error() throw() { } + virtual ~zlib_error() throw() = default; - int code() const throw() { return code_; } + int code() const throw() { return m_code; } }; /** @@ -35,10 +35,10 @@ private: Base &below; std::size_t buffer_size = 1024; - unsigned char *in_buffer = 0; - unsigned char *out_buffer = 0; + unsigned char *in_buffer = nullptr; + unsigned char *out_buffer = nullptr; bool stream_end = false; - Private *priv = 0; + Private *priv = nullptr; public: /** Creates a zlib de/compression object. The underlying object must be