event/*, ...: make GetEventLoop() const

This commit is contained in:
Max Kellermann
2019-04-04 19:48:28 +02:00
parent 4f6144dc71
commit 093bf5d859
17 changed files with 17 additions and 19 deletions

View File

@@ -161,9 +161,7 @@ public:
return export_name.c_str();
}
EventLoop &GetEventLoop() noexcept {
return SocketMonitor::GetEventLoop();
}
using SocketMonitor::GetEventLoop;
/**
* Ensure that the connection is established. The connection

View File

@@ -69,7 +69,7 @@ public:
NfsFileReader() noexcept;
~NfsFileReader() noexcept;
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return defer_open.GetEventLoop();
}