2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Version 1.2.16: Fix build in Xcode 9.3.

This commit is contained in:
John Preston
2018-04-07 12:47:08 +04:00
parent dd53bd1c55
commit 87d6081408
31 changed files with 81 additions and 78 deletions

View File

@@ -141,7 +141,7 @@ Controller::ColumnLayout Controller::computeColumnLayout() const {
auto bodyWidth = window()->bodyWidget()->width();
auto dialogsWidth = 0, chatWidth = 0, thirdWidth = 0;
auto useOneColumnLayout = [this, bodyWidth] {
auto useOneColumnLayout = [&] {
auto minimalNormal = st::columnMinimalWidthLeft
+ st::columnMinimalWidthMain;
if (bodyWidth < minimalNormal) {
@@ -150,7 +150,7 @@ Controller::ColumnLayout Controller::computeColumnLayout() const {
return false;
};
auto useNormalLayout = [this, bodyWidth] {
auto useNormalLayout = [&] {
// Used if useSmallColumnLayout() == false.
if (bodyWidth < minimalThreeColumnWidth()) {
return true;