File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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
1617namespace Ui {
1718
Original file line number Diff line number Diff 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+
1820namespace Ui {
1921namespace {
2022
You can’t perform that action at this time.
0 commit comments