Skip to content

Commit 660f0e7

Browse files
committed
Make RichText fields private.
1 parent fce1add commit 660f0e7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎td/telegram/WebPageBlock.cpp‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ class RichText {
112112
});
113113
}
114114

115-
public:
116-
RichText() = default;
117-
RichText(const RichText &) = delete;
118-
RichText &operator=(const RichText &) = delete;
119-
RichText(RichText &&) = default;
120-
RichText &operator=(RichText &&) = default;
121-
~RichText() = default;
122-
123115
enum class Type : int32 {
124116
Plain,
125117
Bold,
@@ -163,6 +155,14 @@ class RichText {
163155
RichButtonStyle button_style_;
164156
unique_ptr<InlineKeyboardButton> button_;
165157

158+
public:
159+
RichText() = default;
160+
RichText(const RichText &) = delete;
161+
RichText &operator=(const RichText &) = delete;
162+
RichText(RichText &&) = default;
163+
RichText &operator=(RichText &&) = default;
164+
~RichText() = default;
165+
166166
RichText(telegram_api::object_ptr<telegram_api::RichText> &&rich_text_ptr,
167167
const FlatHashMap<int64, FileId> &documents) {
168168
CHECK(rich_text_ptr != nullptr);

0 commit comments

Comments
 (0)