diff --git a/src/fs/io/AutoGunzipReader.cxx b/src/fs/io/AutoGunzipReader.cxx index 1762565f0..158df7b52 100644 --- a/src/fs/io/AutoGunzipReader.cxx +++ b/src/fs/io/AutoGunzipReader.cxx @@ -20,7 +20,7 @@ #include "AutoGunzipReader.hxx" #include "GunzipReader.hxx" -AutoGunzipReader::~AutoGunzipReader() +AutoGunzipReader::~AutoGunzipReader() noexcept { delete gunzip; } diff --git a/src/fs/io/AutoGunzipReader.hxx b/src/fs/io/AutoGunzipReader.hxx index 28e67db15..73a4043af 100644 --- a/src/fs/io/AutoGunzipReader.hxx +++ b/src/fs/io/AutoGunzipReader.hxx @@ -35,9 +35,9 @@ class AutoGunzipReader final : public Reader { GunzipReader *gunzip = nullptr; public: - explicit AutoGunzipReader(Reader &_next) + explicit AutoGunzipReader(Reader &_next) noexcept :peek(_next) {} - ~AutoGunzipReader(); + ~AutoGunzipReader() noexcept; /* virtual methods from class Reader */ virtual size_t Read(void *data, size_t size) override;