summaryrefslogtreecommitdiff
path: root/include/tgbot/EventHandler.h
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2018-07-23 02:35:50 +0300
committerOleg Morozenkov <m@oleg.rocks>2018-07-23 02:35:50 +0300
commit98b8b7e4338b71ee46c4301b0bf2ae667be9a99d (patch)
tree32f8b0d32048b2d83b57773c0efa3db9600b8701 /include/tgbot/EventHandler.h
parent1dd3affe306793d2129f121c11e43c45ae8690da (diff)
parent167e3e7607e43a0f06c7f87ced94f481e6525b0e (diff)
Merge branch 'master' into nicholascw-master
Diffstat (limited to 'include/tgbot/EventHandler.h')
-rw-r--r--include/tgbot/EventHandler.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/tgbot/EventHandler.h b/include/tgbot/EventHandler.h
index 7fa68ee..edc84dc 100644
--- a/include/tgbot/EventHandler.h
+++ b/include/tgbot/EventHandler.h
@@ -32,15 +32,15 @@ namespace TgBot {
class EventHandler {
public:
- explicit EventHandler(const EventBroadcaster* broadcaster) : _broadcaster(broadcaster) {
- }
+ explicit EventHandler(const EventBroadcaster& broadcaster) : _broadcaster(broadcaster) {
+ }
- void handleUpdate(const Update::Ptr update) const;
+ void handleUpdate(Update::Ptr update) const;
private:
- const EventBroadcaster* _broadcaster;
+ const EventBroadcaster& _broadcaster;
- void handleMessage(const Message::Ptr message) const;
+ void handleMessage(Message::Ptr message) const;
};
}