mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Remove MSVC compiler bug workaround.
It works fine in Visual Studio 2017 15.7.1.
This commit is contained in:
parent
4bcd1e3c59
commit
694e8cd19f
@ -248,21 +248,11 @@ Cover::Cover(
|
||||
|
||||
void Cover::setupChildGeometry() {
|
||||
using namespace rpl::mappers;
|
||||
//
|
||||
// Visual Studio 2017 15.5.1 internal compiler error here.
|
||||
// See https://developercommunity.visualstudio.com/content/problem/165155/ice-regression-in-1551-after-successfull-build-in.html
|
||||
//
|
||||
//rpl::combine(
|
||||
// toggleShownValue(),
|
||||
// widthValue(),
|
||||
// _2
|
||||
//) | rpl::map([](bool shown, int width) {
|
||||
rpl::combine(
|
||||
toggleShownValue(),
|
||||
widthValue()
|
||||
) | rpl::map([](bool shown, int width) {
|
||||
return width;
|
||||
}) | rpl::start_with_next([this](int newWidth) {
|
||||
widthValue(),
|
||||
_2
|
||||
) | rpl::start_with_next([this](int newWidth) {
|
||||
_userpic->moveToLeft(
|
||||
st::infoProfilePhotoLeft,
|
||||
st::infoProfilePhotoTop,
|
||||
@ -453,21 +443,12 @@ void SharedMediaCover::createLabel() {
|
||||
Lang::Viewer(lng_profile_shared_media) | ToUpperValue(),
|
||||
st::infoBlockHeaderLabel);
|
||||
label->setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||
//
|
||||
// Visual Studio 2017 15.5.1 internal compiler error here.
|
||||
// See https://developercommunity.visualstudio.com/content/problem/165155/ice-regression-in-1551-after-successfull-build-in.html
|
||||
//
|
||||
//rpl::combine(
|
||||
// toggleShownValue(),
|
||||
// widthValue(),
|
||||
// _2
|
||||
//) | rpl::map([](bool shown, int width) {
|
||||
|
||||
rpl::combine(
|
||||
toggleShownValue(),
|
||||
widthValue()
|
||||
) | rpl::map([](bool shown, int width) {
|
||||
return width;
|
||||
}) | rpl::start_with_next([this, weak = label.data()](int newWidth) {
|
||||
widthValue(),
|
||||
_2
|
||||
) | rpl::start_with_next([this, weak = label.data()](int newWidth) {
|
||||
auto availableWidth = newWidth
|
||||
- st::infoBlockHeaderPosition.x()
|
||||
- st::infoSharedMediaButton.padding.right()
|
||||
|
Loading…
Reference in New Issue
Block a user