From f626d8c0510edc62fa5eab2f5f6b26d63d4d77a1 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 23 Jun 2018 15:28:45 +0900 Subject: Fix compile warning (-Wreorder) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: ‘_limit' will be initialized after [-Wreorder] --- include/tgbot/net/TgLongPoll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tgbot/net/TgLongPoll.h b/include/tgbot/net/TgLongPoll.h index e2d0b94..a0281f1 100644 --- a/include/tgbot/net/TgLongPoll.h +++ b/include/tgbot/net/TgLongPoll.h @@ -46,12 +46,12 @@ public: void start(); private: + const Api* _api; + const EventHandler* _eventHandler; int32_t _lastUpdateId = 0; int32_t _limit; int32_t _timeout; std::shared_ptr> _allowupdates; - const Api* _api; - const EventHandler* _eventHandler; }; } -- cgit v1.2.3