db/update/InotifyQueue: add noexcept

This commit is contained in:
Max Kellermann 2019-09-01 13:58:22 +02:00
parent e81bb5d8f1
commit fc3861b421
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;