Skip to content

Commit b5f4e40

Browse files
committed
Fix build with MSVC.
1 parent a427730 commit b5f4e40

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,7 +2582,6 @@ void SetupPeerColorSample(
25822582
- st::settingsButtonRightSkip;
25832583

25842584
const auto hasProfile = profileIndex.has_value();
2585-
const auto hasColor = (colorIndex != 0);
25862585

25872586
profileSample->setVisible(hasProfile);
25882587

@@ -2614,7 +2613,6 @@ void SetupPeerColorSample(
26142613
QSize inner,
26152614
int colorIndex,
26162615
std::optional<uint8> profileIndex) {
2617-
const auto hasProfile = profileIndex.has_value();
26182616
const auto hasColor = (colorIndex != 0);
26192617

26202618
const auto right = st::settingsColorButton.padding.right()

Telegram/SourceFiles/info/profile/info_profile_top_bar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ void TopBar::setupUserpicButton(
10981098
auto result = Api::PeerPhoto::UserPhoto{
10991099
base::take(data.image),
11001100
data.id,
1101-
base::take(data.colors),
1101+
std::move(data.colors),
11021102
};
11031103
_peer->session().api().peerPhoto().upload(
11041104
_peer,

Telegram/SourceFiles/ui/effects/ministar_particles.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ For license and copyright information please follow this link:
1212
#include "base/random.h"
1313

1414
#include <QtGui/QPainterPath>
15+
#include <QtMath>
1516

1617
namespace Ui {
1718

Telegram/SourceFiles/ui/peer/color_sample.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ For license and copyright information please follow this link:
1515
#include "ui/widgets/buttons.h"
1616
#include "styles/style_settings.h"
1717

18+
#include <QtMath>
19+
1820
namespace Ui {
1921
namespace {
2022

0 commit comments

Comments
 (0)