Commit 9f92b593 authored by Max Kellermann's avatar Max Kellermann

db/update/InotifyQueue: add `noexcept`

parent 2bb5030f
...@@ -79,7 +79,7 @@ path_in(const char *path, const char *possible_parent) noexcept ...@@ -79,7 +79,7 @@ path_in(const char *path, const char *possible_parent) noexcept
} }
void void
InotifyQueue::Enqueue(const char *uri_utf8) InotifyQueue::Enqueue(const char *uri_utf8) noexcept
{ {
delay_event.Schedule(INOTIFY_UPDATE_DELAY); delay_event.Schedule(INOTIFY_UPDATE_DELAY);
......
...@@ -35,11 +35,11 @@ class InotifyQueue final { ...@@ -35,11 +35,11 @@ class InotifyQueue final {
TimerEvent delay_event; TimerEvent delay_event;
public: public:
InotifyQueue(EventLoop &_loop, UpdateService &_update) InotifyQueue(EventLoop &_loop, UpdateService &_update) noexcept
:update(_update), :update(_update),
delay_event(_loop, BIND_THIS_METHOD(OnDelay)) {} delay_event(_loop, BIND_THIS_METHOD(OnDelay)) {}
void Enqueue(const char *uri_utf8); void Enqueue(const char *uri_utf8) noexcept;
private: private:
void OnDelay() noexcept; void OnDelay() noexcept;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment