summaryrefslogtreecommitdiff
path: root/include/tgbot/net/TgWebhookLocalServer.h
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-05-26 17:46:51 +0900
committerJellyBrick <shlee1503@naver.com>2018-05-26 17:46:51 +0900
commitb79bd701400fb8bf8a845f8a24d78e82f182bb2f (patch)
treeed669eac33388c4b8f7e47f9037ddef3ad927d87 /include/tgbot/net/TgWebhookLocalServer.h
parent987adf188619011acff2052301245e4df22a38d2 (diff)
Improve performance
Diffstat (limited to 'include/tgbot/net/TgWebhookLocalServer.h')
-rw-r--r--include/tgbot/net/TgWebhookLocalServer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h
index 67268f5..99a0fba 100644
--- a/include/tgbot/net/TgWebhookLocalServer.h
+++ b/include/tgbot/net/TgWebhookLocalServer.h
@@ -39,7 +39,7 @@ public:
TgWebhookLocalServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>& acceptor, const std::string& path, EventHandler* eventHandler) = delete;
TgWebhookLocalServer(const std::string& path, const EventHandler* eventHandler) :
- TgWebhookServer<boost::asio::local::stream_protocol>(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(new boost::asio::local::stream_protocol::acceptor(_ioService, boost::asio::local::stream_protocol::endpoint(path))), path, eventHandler)
+ TgWebhookServer<boost::asio::local::stream_protocol>(std::make_shared<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(_ioService, boost::asio::local::stream_protocol::endpoint(path)), path, eventHandler)
{
}