diff options
| author | levlam <levlam@telegram.org> | 2026-07-11 17:41:05 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-07-11 17:41:05 +0300 |
| commit | 8dddefbb14fb6d3e96ca7ed51fd7bd3a9462e491 (patch) | |
| tree | 25ca62b506a91b2f034f830df9cebf872a35697b /td | |
| parent | 7245fa4ba5b92b05a943b287e0a7b7e6fbf6cbf2 (diff) | |
Mark constructors explicit.
Diffstat (limited to 'td')
| -rw-r--r-- | td/telegram/DialogParticipant.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/DialogParticipant.h b/td/telegram/DialogParticipant.h index fe457a164..0066ad065 100644 --- a/td/telegram/DialogParticipant.h +++ b/td/telegram/DialogParticipant.h @@ -65,7 +65,7 @@ class AdministratorRights { AdministratorRights(const td_api::object_ptr<td_api::chatAdministratorRights> &administrator_rights, ChannelType channel_type); - AdministratorRights(const td_api::object_ptr<td_api::communityAdministratorRights> &administrator_rights); + explicit AdministratorRights(const td_api::object_ptr<td_api::communityAdministratorRights> &administrator_rights); AdministratorRights(bool is_anonymous, bool can_manage_dialog, bool can_change_info, bool can_post_messages, bool can_edit_messages, bool can_delete_messages, bool can_invite_users, @@ -223,7 +223,7 @@ class RestrictedRights { RestrictedRights(const td_api::object_ptr<td_api::chatPermissions> &rights, ChannelType channel_type); - RestrictedRights(const td_api::object_ptr<td_api::communityPermissions> &rights); + explicit RestrictedRights(const td_api::object_ptr<td_api::communityPermissions> &rights); RestrictedRights(bool can_send_messages, bool can_send_audios, bool can_send_documents, bool can_send_photos, bool can_send_videos, bool can_send_video_notes, bool can_send_voice_notes, bool can_send_stickers, |
