diff options
author | jellybrick <shlee1503@naver.com> | 2020-03-14 23:21:30 +0900 |
---|---|---|
committer | jellybrick <shlee1503@naver.com> | 2020-03-14 23:21:42 +0900 |
commit | 64174491dac84c559db5c48ed850177fa3eb4da0 (patch) | |
tree | 5f7a754d57c2a7ec439f309df5e4b8d964d0834f /include/tgbot/EventHandler.h | |
parent | 19f49b7a2f540a756ed9759b0fa5fb52bf73f20e (diff) |
Fix #127, #128 & Code quality improvements
It seems that the author of this code misunderstood 'Array of PollOption' as 'PollOption'.
Diffstat (limited to 'include/tgbot/EventHandler.h')
-rw-r--r-- | include/tgbot/EventHandler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tgbot/EventHandler.h b/include/tgbot/EventHandler.h index 4e77e33..3f92ca2 100644 --- a/include/tgbot/EventHandler.h +++ b/include/tgbot/EventHandler.h @@ -13,12 +13,12 @@ public: explicit EventHandler(const EventBroadcaster& broadcaster) : _broadcaster(broadcaster) { } - void handleUpdate(Update::Ptr update) const; + void handleUpdate(const Update::Ptr& update) const; private: const EventBroadcaster& _broadcaster; - void handleMessage(Message::Ptr message) const; + void handleMessage(const Message::Ptr& message) const; }; } |