fs/io/AutoGunzipReader: add noexcept

This commit is contained in:
Max Kellermann 2019-04-26 14:45:56 +02:00
parent bf9f690c70
commit 3882c97545
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
#include "AutoGunzipReader.hxx"
#include "GunzipReader.hxx"
AutoGunzipReader::~AutoGunzipReader()
AutoGunzipReader::~AutoGunzipReader() noexcept
{
delete gunzip;
}

View File

@ -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;