diff options
author | Max Kellermann <max@musicpd.org> | 2019-09-01 13:58:45 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-09-01 13:58:45 +0200 |
commit | 32f865f146be4995a3e0bcafdf1ac38d81e165c7 (patch) | |
tree | 396d11cc76887d8df7ecd753b980513dcf455156 /src/db | |
parent | 9f92b59376c162ed5f21ca75e553bda6e3859551 (diff) |
db/update/InotifySource: add `noexcept`
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/update/InotifySource.cxx | 2 | ||||
-rw-r--r-- | src/db/update/InotifySource.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/db/update/InotifySource.cxx b/src/db/update/InotifySource.cxx index 285ce7a34..16d18542c 100644 --- a/src/db/update/InotifySource.cxx +++ b/src/db/update/InotifySource.cxx @@ -97,7 +97,7 @@ InotifySource::Add(const char *path_fs, unsigned mask) } void -InotifySource::Remove(unsigned wd) +InotifySource::Remove(unsigned wd) noexcept { auto ifd = GetSocket().ToFileDescriptor(); int ret = inotify_rm_watch(ifd.Get(), wd); diff --git a/src/db/update/InotifySource.hxx b/src/db/update/InotifySource.hxx index 51cba9427..12d2d3667 100644 --- a/src/db/update/InotifySource.hxx +++ b/src/db/update/InotifySource.hxx @@ -42,7 +42,7 @@ public: InotifySource(EventLoop &_loop, mpd_inotify_callback_t callback, void *ctx); - ~InotifySource() { + ~InotifySource() noexcept { Close(); } @@ -60,7 +60,7 @@ public: * * @param wd the watch descriptor returned by mpd_inotify_source_add() */ - void Remove(unsigned wd); + void Remove(unsigned wd) noexcept; private: bool OnSocketReady(unsigned flags) noexcept override; |