From 3882c975455065af7ab9e19a5a3efa142660357a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Apr 2019 14:45:56 +0200 Subject: [PATCH] fs/io/AutoGunzipReader: add `noexcept` --- src/fs/io/AutoGunzipReader.cxx | 2 +- src/fs/io/AutoGunzipReader.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;