Fix build with MSVC.

This commit is contained in:
John Preston
2025-11-06 22:53:42 +04:00
parent a427730acd
commit b5f4e40c3e
4 changed files with 4 additions and 3 deletions
@@ -2582,7 +2582,6 @@ void SetupPeerColorSample(
- st::settingsButtonRightSkip;
const auto hasProfile = profileIndex.has_value();
const auto hasColor = (colorIndex != 0);
profileSample->setVisible(hasProfile);
@@ -2614,7 +2613,6 @@ void SetupPeerColorSample(
QSize inner,
int colorIndex,
std::optional<uint8> profileIndex) {
const auto hasProfile = profileIndex.has_value();
const auto hasColor = (colorIndex != 0);
const auto right = st::settingsColorButton.padding.right()
@@ -1098,7 +1098,7 @@ void TopBar::setupUserpicButton(
auto result = Api::PeerPhoto::UserPhoto{
base::take(data.image),
data.id,
base::take(data.colors),
std::move(data.colors),
};
_peer->session().api().peerPhoto().upload(
_peer,
@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/random.h"
#include <QtGui/QPainterPath>
#include <QtMath>
namespace Ui {
@@ -15,6 +15,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/buttons.h"
#include "styles/style_settings.h"
#include <QtMath>
namespace Ui {
namespace {