summaryrefslogtreecommitdiff
path: root/include/tgbot/EventHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tgbot/EventHandler.h')
-rw-r--r--include/tgbot/EventHandler.h4
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;
};
}