summaryrefslogtreecommitdiff
path: root/include/tgbot/EventHandler.h
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2018-07-23 01:56:42 +0300
committerOleg Morozenkov <m@oleg.rocks>2018-07-23 01:56:42 +0300
commitd47ee877be5d1175bdc36f2d87881ddaf875a8e9 (patch)
tree7fd20cdc1236fe6b832ae980de12afd7071ebab9 /include/tgbot/EventHandler.h
parentcea20d4078f2088dea0dd589f1cc9dd7ee22461b (diff)
Refactor http clients, fix webhook server, add more samples, change tabs to 4 spaces
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;
};
}