From 64174491dac84c559db5c48ed850177fa3eb4da0 Mon Sep 17 00:00:00 2001 From: jellybrick Date: Sat, 14 Mar 2020 23:21:30 +0900 Subject: Fix #127, #128 & Code quality improvements It seems that the author of this code misunderstood 'Array of PollOption' as 'PollOption'. --- include/tgbot/EventHandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/tgbot/EventHandler.h') 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; }; } -- cgit v1.2.3