diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-01-22 23:11:53 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-01-22 23:11:53 +0100 |
commit | 3a3cce8eed7e43faa8c9f606e56bb43ba3bd9451 (patch) | |
tree | a71fc572b2d04554b6799afa5cf1631719e31b7b | |
parent | 05ecd0105d4e723517bc269c9b42bc650743ee89 (diff) |
Service: drop const from handle method
-rw-r--r-- | include/erebos/message.h | 2 | ||||
-rw-r--r-- | include/erebos/service.h | 2 | ||||
-rw-r--r-- | src/message.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/erebos/message.h b/include/erebos/message.h index 66d221c..70a11bc 100644 --- a/include/erebos/message.h +++ b/include/erebos/message.h @@ -78,7 +78,7 @@ public: virtual ~DirectMessageService(); UUID uuid() const override; - void handle(Context &) const override; + void handle(Context &) override; typedef std::function<void(const DirectMessageThread &, ssize_t, ssize_t)> ThreadWatcher; void onUpdate(ThreadWatcher); diff --git a/include/erebos/service.h b/include/erebos/service.h index fa7f105..cec5ea0 100644 --- a/include/erebos/service.h +++ b/include/erebos/service.h @@ -31,7 +31,7 @@ public: }; virtual UUID uuid() const = 0; - virtual void handle(Context &) const = 0; + virtual void handle(Context &) = 0; }; } diff --git a/src/message.cpp b/src/message.cpp index 601bc39..f8e0d96 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -213,7 +213,7 @@ UUID DirectMessageService::uuid() const return myUUID; } -void DirectMessageService::handle(Context & ctx) const +void DirectMessageService::handle(Context & ctx) { auto pid = ctx.peer().identity(); if (!pid) |