From 633d81dc681c1e0116f6e6f1bc26fb4418d1c0dc Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 25 Jul 2021 23:00:40 +0900 Subject: fix(TgWebhookServer): `_path` will be initialized after `_eventHandler` --- include/tgbot/net/TgWebhookServer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/tgbot/net/TgWebhookServer.h b/include/tgbot/net/TgWebhookServer.h index 8e89765..f7eb949 100644 --- a/include/tgbot/net/TgWebhookServer.h +++ b/include/tgbot/net/TgWebhookServer.h @@ -38,8 +38,8 @@ private: return HttpServer::_httpParser.generateResponse("", "text/plain", 200, "OK", false); } - const EventHandler& _eventHandler; const std::string _path; + const EventHandler& _eventHandler; const TgTypeParser _tgTypeParser; }; -- cgit v1.2.3