From 693815bb32e01f490a0ff1e5a8613296bf77dc4e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Apr 2019 19:52:42 +0200 Subject: [PATCH] input/AsyncInputStream: add `noexcept` --- src/input/AsyncInputStream.cxx | 4 ++-- src/input/AsyncInputStream.hxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/input/AsyncInputStream.cxx b/src/input/AsyncInputStream.cxx index 63c2c472f..9d457852b 100644 --- a/src/input/AsyncInputStream.cxx +++ b/src/input/AsyncInputStream.cxx @@ -31,7 +31,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url, Mutex &_mutex, size_t _buffer_size, - size_t _resume_at) + size_t _resume_at) noexcept :InputStream(_url, _mutex), deferred_resume(event_loop, BIND_THIS_METHOD(DeferredResume)), deferred_seek(event_loop, BIND_THIS_METHOD(DeferredSeek)), @@ -42,7 +42,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url, allocation.ForkCow(false); } -AsyncInputStream::~AsyncInputStream() +AsyncInputStream::~AsyncInputStream() noexcept { buffer.Clear(); } diff --git a/src/input/AsyncInputStream.hxx b/src/input/AsyncInputStream.hxx index acdae2d60..566ec6601 100644 --- a/src/input/AsyncInputStream.hxx +++ b/src/input/AsyncInputStream.hxx @@ -72,11 +72,11 @@ public: AsyncInputStream(EventLoop &event_loop, const char *_url, Mutex &_mutex, size_t _buffer_size, - size_t _resume_at); + size_t _resume_at) noexcept; - virtual ~AsyncInputStream(); + virtual ~AsyncInputStream() noexcept; - EventLoop &GetEventLoop() { + EventLoop &GetEventLoop() noexcept { return deferred_resume.GetEventLoop(); }