event/SocketMonitor: add "noexcept"

This commit is contained in:
Max Kellermann
2017-11-10 20:20:07 +01:00
parent 9d4020501c
commit 59a8836924
21 changed files with 61 additions and 54 deletions

View File

@@ -142,7 +142,7 @@ private:
void Disconnect();
/* virtual methods from SocketMonitor */
bool OnSocketReady(unsigned flags) override;
bool OnSocketReady(unsigned flags) noexcept override;
/* virtual methods from IdleMonitor */
void OnIdle() override;
@@ -459,7 +459,7 @@ ProxyDatabase::Disconnect()
}
bool
ProxyDatabase::OnSocketReady(gcc_unused unsigned flags)
ProxyDatabase::OnSocketReady(gcc_unused unsigned flags) noexcept
{
assert(connection != nullptr);

View File

@@ -32,7 +32,7 @@
#include <limits.h>
bool
InotifySource::OnSocketReady(gcc_unused unsigned flags)
InotifySource::OnSocketReady(gcc_unused unsigned flags) noexcept
{
uint8_t buffer[4096];
static_assert(sizeof(buffer) >= sizeof(struct inotify_event) + NAME_MAX + 1,

View File

@@ -66,7 +66,7 @@ public:
void Remove(unsigned wd);
private:
virtual bool OnSocketReady(unsigned flags) override;
bool OnSocketReady(unsigned flags) noexcept override;
};
#endif