class zlib_error: public std::runtime_error
{
private:
- int code_;
+ int m_code;
public:
zlib_error(const std::string &, int);
virtual ~zlib_error() throw() = default;
- int code() const throw() { return code_; }
+ int code() const throw() { return m_code; }
};
/**
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