From 9f92b59376c162ed5f21ca75e553bda6e3859551 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Sep 2019 13:58:22 +0200 Subject: [PATCH] db/update/InotifyQueue: add `noexcept` --- src/db/update/InotifyQueue.cxx | 2 +- src/db/update/InotifyQueue.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/db/update/InotifyQueue.cxx b/src/db/update/InotifyQueue.cxx index 71bdb89be..22cebbb47 100644 --- a/src/db/update/InotifyQueue.cxx +++ b/src/db/update/InotifyQueue.cxx @@ -79,7 +79,7 @@ path_in(const char *path, const char *possible_parent) noexcept } void -InotifyQueue::Enqueue(const char *uri_utf8) +InotifyQueue::Enqueue(const char *uri_utf8) noexcept { delay_event.Schedule(INOTIFY_UPDATE_DELAY); diff --git a/src/db/update/InotifyQueue.hxx b/src/db/update/InotifyQueue.hxx index 9cff2785a..08956f5d5 100644 --- a/src/db/update/InotifyQueue.hxx +++ b/src/db/update/InotifyQueue.hxx @@ -35,11 +35,11 @@ class InotifyQueue final { TimerEvent delay_event; public: - InotifyQueue(EventLoop &_loop, UpdateService &_update) + InotifyQueue(EventLoop &_loop, UpdateService &_update) noexcept :update(_update), delay_event(_loop, BIND_THIS_METHOD(OnDelay)) {} - void Enqueue(const char *uri_utf8); + void Enqueue(const char *uri_utf8) noexcept; private: void OnDelay() noexcept;