Clean up formatting

This commit is contained in:
Berkus Decker 2017-11-27 03:06:49 +02:00 committed by Berkus Decker
parent f09feaf8b1
commit 16aea1439a
2 changed files with 11 additions and 6 deletions

View File

@ -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<PeerListController> controller, base::lambda<void(not_null<PeerListBox*>)> init)
: _controller(std::move(controller))
, _init(std::move(init)) {
PeerListBox::PeerListBox(QWidget*
, std::unique_ptr<PeerListController> controller
, base::lambda<void(not_null<PeerListBox*>)> init)
: _controller(std::move(controller))
, _init(std::move(init))
{
Expects(_controller != nullptr);
}

View File

@ -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) {