From 128aec1d590655b3dd4b1f021471ec630d1cef26 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 2 May 2023 23:14:35 +0300 Subject: [PATCH] Make OrderedMessages fields private. --- td/telegram/OrderedMessage.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/td/telegram/OrderedMessage.h b/td/telegram/OrderedMessage.h index a70e6a4fc..69a46875d 100644 --- a/td/telegram/OrderedMessage.h +++ b/td/telegram/OrderedMessage.h @@ -26,9 +26,8 @@ struct OrderedMessage { unique_ptr right; }; -struct OrderedMessages { - unique_ptr messages_; - +class OrderedMessages { + public: class IteratorBase { vector stack_; @@ -190,6 +189,9 @@ struct OrderedMessages { void traverse_messages(const std::function &need_scan_older, const std::function &need_scan_newer) const; + + private: + unique_ptr messages_; }; } // namespace td