summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-04 19:48:28 +0200
committerMax Kellermann <max@musicpd.org>2020-03-26 17:19:13 +0100
commit8cd5e79fbdda5c978046d4e40e77cfd1a2a070f5 (patch)
tree3a4957f6a9d4042d56a8e383f48f724949e0a4a4 /src/input
parent1de3ac6c78f2ff1b99e59c94a4ed016aa6718fb1 (diff)
event/*, ...: make GetEventLoop() const
Diffstat (limited to 'src/input')
-rw-r--r--src/input/AsyncInputStream.hxx2
-rw-r--r--src/input/plugins/TidalSessionManager.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/input/AsyncInputStream.hxx b/src/input/AsyncInputStream.hxx
index acdae2d60..9583db22c 100644
--- a/src/input/AsyncInputStream.hxx
+++ b/src/input/AsyncInputStream.hxx
@@ -76,7 +76,7 @@ public:
virtual ~AsyncInputStream();
- EventLoop &GetEventLoop() {
+ auto &GetEventLoop() const noexcept {
return deferred_resume.GetEventLoop();
}
diff --git a/src/input/plugins/TidalSessionManager.hxx b/src/input/plugins/TidalSessionManager.hxx
index f5b4c9299..429612255 100644
--- a/src/input/plugins/TidalSessionManager.hxx
+++ b/src/input/plugins/TidalSessionManager.hxx
@@ -102,7 +102,7 @@ public:
~TidalSessionManager() noexcept;
- EventLoop &GetEventLoop() noexcept {
+ auto &GetEventLoop() const noexcept {
return defer_invoke_handlers.GetEventLoop();
}