diff options
author | Max Kellermann <max@musicpd.org> | 2019-04-24 14:56:08 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-04-24 14:56:08 +0200 |
commit | 1b62adc89406dbb5822c225b80f6cfe51168db19 (patch) | |
tree | 90dcddab78a0df6cb4a2f6ea0c1464ea2e733279 /src/Instance.hxx | |
parent | 0641ce79fefd0f8df5dc9d47e5cb0e25fed6e781 (diff) |
Instance: add `noexcept`
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r-- | src/Instance.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx index 5aa2209d9..a2fd0d82b 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -131,11 +131,11 @@ struct Instance final /** * Wrapper for EventLoop::Break(). Call to initiate shutdown. */ - void Break() { + void Break() noexcept { event_loop.Break(); } - void EmitIdle(unsigned mask) { + void EmitIdle(unsigned mask) noexcept { idle_monitor.OrMask(mask); } @@ -154,7 +154,7 @@ struct Instance final * if this MPD configuration has no database (no * music_directory was configured). */ - Database *GetDatabase() { + Database *GetDatabase() noexcept { return database.get(); } @@ -194,7 +194,7 @@ private: #endif /* callback for #idle_monitor */ - void OnIdle(unsigned mask); + void OnIdle(unsigned mask) noexcept; }; #endif |