diff --git a/Telegram/SourceFiles/boxes/peer_list_box.cpp b/Telegram/SourceFiles/boxes/peer_list_box.cpp index 11127b473..64b5ec4f6 100644 --- a/Telegram/SourceFiles/boxes/peer_list_box.cpp +++ b/Telegram/SourceFiles/boxes/peer_list_box.cpp @@ -34,9 +34,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "storage/file_download.h" #include "window/themes/window_theme.h" -PeerListBox::PeerListBox(QWidget*, std::unique_ptr controller, base::lambda)> init) -: _controller(std::move(controller)) -, _init(std::move(init)) { +PeerListBox::PeerListBox(QWidget* + , std::unique_ptr controller + , base::lambda)> init) + : _controller(std::move(controller)) + , _init(std::move(init)) +{ Expects(_controller != nullptr); } diff --git a/Telegram/SourceFiles/profile/profile_block_shared_media.cpp b/Telegram/SourceFiles/profile/profile_block_shared_media.cpp index ba852b470..98955b293 100644 --- a/Telegram/SourceFiles/profile/profile_block_shared_media.cpp +++ b/Telegram/SourceFiles/profile/profile_block_shared_media.cpp @@ -49,9 +49,11 @@ QString getButtonText(MediaOverviewType type, int count) { } // namespace -SharedMediaWidget::SharedMediaWidget(QWidget *parent, PeerData *peer) : BlockWidget(parent, peer, lang(lng_profile_shared_media)) -, _history(App::history(peer)) -, _migrated(_history->migrateFrom()) { +SharedMediaWidget::SharedMediaWidget(QWidget *parent, PeerData *peer) + : BlockWidget(parent, peer, lang(lng_profile_shared_media)) + , _history(App::history(peer)) + , _migrated(_history->migrateFrom()) +{ auto observeEvents = Notify::PeerUpdate::Flag::SharedMediaChanged | Notify::PeerUpdate::Flag::UserCommonChatsChanged; subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(observeEvents, [this](const Notify::PeerUpdate &update) {