event/SocketMonitor: add "noexcept"
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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,
|
||||
|
@@ -66,7 +66,7 @@ public:
|
||||
void Remove(unsigned wd);
|
||||
|
||||
private:
|
||||
virtual bool OnSocketReady(unsigned flags) override;
|
||||
bool OnSocketReady(unsigned flags) noexcept override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user