GCC bug workaround.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67274
This commit is contained in:
John Preston 2017-09-19 09:09:09 +03:00
parent 766e7dadb1
commit 3fbb643d51
5 changed files with 8 additions and 8 deletions

View File

@ -59,7 +59,7 @@ void StickerSetBox::prepare() {
_inner->setInstalled()
| rpl::start([this](auto &&setId) {
Auth().api().stickerSetInstalled(setId);
closeBox();
this->closeBox();
}, lifetime());
}

View File

@ -64,7 +64,7 @@ TabbedPanel::TabbedPanel(
});
_selector->showRequests()
| rpl::start([this](auto&&) {
showFromSelector();
this->showFromSelector();
}, lifetime());
resize(QRect(0, 0, st::emojiPanWidth, st::emojiPanMaxHeight).marginsAdded(innerPadding()).size());

View File

@ -88,7 +88,7 @@ object_ptr<TopBar> NarrowWrap::createTopBar() {
result->enableBackButton(true);
result->backRequest()
| rpl::start([this](auto&&) {
controller()->showBackFromStack();
this->controller()->showBackFromStack();
}, result->lifetime());
result->setTitle(TitleValue(
_content->section(),

View File

@ -323,16 +323,16 @@ void CoverLine::initViewers() {
using Flag = Notify::PeerUpdate::Flag;
PeerUpdateViewer(_peer, Flag::PhotoChanged)
| rpl::start(
[this](auto&&) { refreshUserpicLink(); },
[this](auto&&) { this->refreshUserpicLink(); },
_lifetime);
PeerUpdateViewer(_peer, Flag::NameChanged)
| rpl::start(
[this](auto&&) { refreshNameText(); },
[this](auto&&) { this->refreshNameText(); },
_lifetime);
PeerUpdateViewer(_peer,
Flag::UserOnlineChanged | Flag::MembersChanged)
| rpl::start(
[this](auto&&) { refreshStatusText(); },
[this](auto&&) { this->refreshStatusText(); },
_lifetime);
}

View File

@ -59,8 +59,8 @@ void TopBar::pushButton(object_ptr<Ui::RpWidget> button) {
auto weak = Ui::AttachParentChild(this, button);
_buttons.push_back(std::move(button));
weak->widthValue()
| rpl::start([this](auto) {
updateControlsGeometry(width());
| rpl::start([this](auto&&) {
this->updateControlsGeometry(this->width());
}, _lifetime);
}