summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-09-01 13:58:22 +0200
committerMax Kellermann <max@musicpd.org>2020-09-16 20:40:03 +0200
commitfc3861b4217e0ee76ecaa64ddaaed22c936c78cc (patch)
treeba23300b5192ce15db549d4046ddfdda8a645fa8
parente81bb5d8f18c3d4de9a591cd85cd33a2a47692a6 (diff)
db/update/InotifyQueue: add `noexcept`
-rw-r--r--src/db/update/InotifyQueue.cxx2
-rw-r--r--src/db/update/InotifyQueue.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/db/update/InotifyQueue.cxx b/src/db/update/InotifyQueue.cxx
index 84b576b2e..35269cedd 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 bb6159019..9190cbc18 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;