summaryrefslogtreecommitdiff
path: root/src/Bot.cpp
diff options
context:
space:
mode:
authorEgor Pugin <egor.pugin@gmail.com>2020-03-14 18:09:00 +0300
committerEgor Pugin <egor.pugin@gmail.com>2020-03-14 18:09:00 +0300
commitb780dfdf19b86b500295d43c19f8f8cf914b61b5 (patch)
tree57925e91f1387dd0e7d5f758aa58c7559eeb2b48 /src/Bot.cpp
parent6063f4a353ffad6d098366564f3ba063795de8b1 (diff)
Init unique_ptr in C++11 style.
Diffstat (limited to 'src/Bot.cpp')
-rw-r--r--src/Bot.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Bot.cpp b/src/Bot.cpp
index b1e1ea5..8e6d667 100644
--- a/src/Bot.cpp
+++ b/src/Bot.cpp
@@ -7,7 +7,9 @@ namespace TgBot {
Bot::Bot(std::string token, const HttpClient& httpClient)
: _token(std::move(token))
, _api(_token, httpClient)
- , _eventBroadcaster(std::make_unique<EventBroadcaster>())
+ // uncomment when c++14 is available
+ //, _eventBroadcaster(std::make_unique<EventBroadcaster>())
+ , _eventBroadcaster(new EventBroadcaster())
, _eventHandler(getEvents()) {
}