mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Version 4.12: Fix build with GCC.
This commit is contained in:
parent
98be0a69df
commit
0e2131e6eb
9 changed files with 2 additions and 14 deletions
|
@ -216,7 +216,6 @@ void ApplyBotsList(
|
||||||
const MTPmessages_Chats &chats) {
|
const MTPmessages_Chats &chats) {
|
||||||
auto result = ChatParticipants::Channels();
|
auto result = ChatParticipants::Channels();
|
||||||
std::vector<not_null<ChannelData*>>();
|
std::vector<not_null<ChannelData*>>();
|
||||||
auto total = 0;
|
|
||||||
chats.match([&](const auto &data) {
|
chats.match([&](const auto &data) {
|
||||||
const auto &list = data.vchats().v;
|
const auto &list = data.vchats().v;
|
||||||
result.list.reserve(list.size());
|
result.list.reserve(list.size());
|
||||||
|
@ -583,7 +582,6 @@ void ChatParticipants::requestSelf(not_null<ChannelData*> channel) {
|
||||||
UserId inviter = -1,
|
UserId inviter = -1,
|
||||||
TimeId inviteDate = 0,
|
TimeId inviteDate = 0,
|
||||||
bool inviteViaRequest = false) {
|
bool inviteViaRequest = false) {
|
||||||
const auto dateChanged = (channel->inviteDate != inviteDate);
|
|
||||||
channel->inviter = inviter;
|
channel->inviter = inviter;
|
||||||
channel->inviteDate = inviteDate;
|
channel->inviteDate = inviteDate;
|
||||||
channel->inviteViaRequest = inviteViaRequest;
|
channel->inviteViaRequest = inviteViaRequest;
|
||||||
|
|
|
@ -1097,7 +1097,6 @@ void Controller::fillManageSection() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canEditReactions()) {
|
if (canEditReactions()) {
|
||||||
const auto session = &_peer->session();
|
|
||||||
auto allowedReactions = Info::Profile::MigratedOrMeValue(
|
auto allowedReactions = Info::Profile::MigratedOrMeValue(
|
||||||
_peer
|
_peer
|
||||||
) | rpl::map([=](not_null<PeerData*> peer) {
|
) | rpl::map([=](not_null<PeerData*> peer) {
|
||||||
|
|
|
@ -106,7 +106,6 @@ QRect CornerBadgeTTLRect(int photoSize) {
|
||||||
}
|
}
|
||||||
|
|
||||||
QImage BlurredDarkenedPart(QImage image, QRect part) {
|
QImage BlurredDarkenedPart(QImage image, QRect part) {
|
||||||
const auto ratio = style::DevicePixelRatio();
|
|
||||||
auto blurred = Images::BlurLargeImage(
|
auto blurred = Images::BlurLargeImage(
|
||||||
std::move(image),
|
std::move(image),
|
||||||
kBlurRadius).copy(part);
|
kBlurRadius).copy(part);
|
||||||
|
|
|
@ -162,7 +162,6 @@ void SimilarChannels::draw(Painter &p, const PaintContext &context) const {
|
||||||
path.lineTo(x, y - size);
|
path.lineTo(x, y - size);
|
||||||
p.fillPath(path, stm->msgBg);
|
p.fillPath(path, stm->msgBg);
|
||||||
}
|
}
|
||||||
const auto photo = st::chatSimilarChannelPhoto;
|
|
||||||
const auto padding = st::chatSimilarChannelPadding;
|
const auto padding = st::chatSimilarChannelPadding;
|
||||||
p.setClipRect(geometry);
|
p.setClipRect(geometry);
|
||||||
_hasHeavyPart = 1;
|
_hasHeavyPart = 1;
|
||||||
|
@ -177,7 +176,6 @@ void SimilarChannels::draw(Painter &p, const PaintContext &context) const {
|
||||||
if (subscribing) {
|
if (subscribing) {
|
||||||
channel.subscribed = 1;
|
channel.subscribed = 1;
|
||||||
const auto raw = channel.thumbnail.get();
|
const auto raw = channel.thumbnail.get();
|
||||||
const auto view = parent();
|
|
||||||
channel.thumbnail->subscribeToUpdates([=] {
|
channel.thumbnail->subscribeToUpdates([=] {
|
||||||
for (const auto &channel : _channels) {
|
for (const auto &channel : _channels) {
|
||||||
if (channel.thumbnail.get() == raw) {
|
if (channel.thumbnail.get() == raw) {
|
||||||
|
@ -265,7 +263,6 @@ void SimilarChannels::draw(Painter &p, const PaintContext &context) const {
|
||||||
st::chatSimilarBadgePadding);
|
st::chatSimilarBadgePadding);
|
||||||
auto textLeft = badge.x();
|
auto textLeft = badge.x();
|
||||||
const auto &font = st::chatSimilarBadgeFont;
|
const auto &font = st::chatSimilarBadgeFont;
|
||||||
const auto ascent = font->ascent;
|
|
||||||
const auto textTop = badge.y() + font->ascent;
|
const auto textTop = badge.y() + font->ascent;
|
||||||
const auto icon = !channel.more
|
const auto icon = !channel.more
|
||||||
? &st::chatSimilarBadgeIcon
|
? &st::chatSimilarBadgeIcon
|
||||||
|
@ -644,4 +641,4 @@ bool SimilarChannels::consumeHorizontalScroll(QPoint position, int delta) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace HistoryView
|
} // namespace HistoryView
|
||||||
|
|
|
@ -417,7 +417,6 @@ QSize WebPage::countCurrentSize(int newWidth) {
|
||||||
auto siteNameHeight = _siteNameLines ? lineHeight : 0;
|
auto siteNameHeight = _siteNameLines ? lineHeight : 0;
|
||||||
const auto asSponsored = (!!_sponsoredData);
|
const auto asSponsored = (!!_sponsoredData);
|
||||||
if (asArticle() || asSponsored) {
|
if (asArticle() || asSponsored) {
|
||||||
const auto article = asArticle();
|
|
||||||
constexpr auto kSponsoredUserpicLines = 2;
|
constexpr auto kSponsoredUserpicLines = 2;
|
||||||
_pixh = (asSponsored ? kSponsoredUserpicLines : linesMax) * lineHeight;
|
_pixh = (asSponsored ? kSponsoredUserpicLines : linesMax) * lineHeight;
|
||||||
do {
|
do {
|
||||||
|
|
|
@ -240,7 +240,7 @@ void ListController::restoreState(
|
||||||
auto typeErasedState = state
|
auto typeErasedState = state
|
||||||
? state->controllerState.get()
|
? state->controllerState.get()
|
||||||
: nullptr;
|
: nullptr;
|
||||||
if (auto my = dynamic_cast<SavedState*>(typeErasedState)) {
|
if (dynamic_cast<SavedState*>(typeErasedState)) {
|
||||||
PeerListController::restoreState(std::move(state));
|
PeerListController::restoreState(std::move(state));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -684,7 +684,6 @@ void InnerWidget::fill() {
|
||||||
FillStatistic(inner, descriptor, _state.stats);
|
FillStatistic(inner, descriptor, _state.stats);
|
||||||
const auto &channel = _state.stats.channel;
|
const auto &channel = _state.stats.channel;
|
||||||
const auto &supergroup = _state.stats.supergroup;
|
const auto &supergroup = _state.stats.supergroup;
|
||||||
const auto &message = _state.stats.message;
|
|
||||||
if (channel) {
|
if (channel) {
|
||||||
fillRecentPosts();
|
fillRecentPosts();
|
||||||
} else if (supergroup) {
|
} else if (supergroup) {
|
||||||
|
|
|
@ -118,7 +118,6 @@ void RepostView::draw(Painter &p, int x, int y, int availableWidth) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto pausedSpoiler = On(PowerSaving::kChatSpoiler);
|
|
||||||
if (w > st::historyReplyPadding.left()) {
|
if (w > st::historyReplyPadding.left()) {
|
||||||
const auto textw = w
|
const auto textw = w
|
||||||
- st::historyReplyPadding.left()
|
- st::historyReplyPadding.left()
|
||||||
|
|
|
@ -155,7 +155,6 @@ void BarChartView::paintSelectedXIndex(
|
||||||
auto o = ScopedPainterOpacity(p, progress);
|
auto o = ScopedPainterOpacity(p, progress);
|
||||||
p.setBrush(st::boxBg);
|
p.setBrush(st::boxBg);
|
||||||
const auto r = st::statisticsDetailsDotRadius;
|
const auto r = st::statisticsDetailsDotRadius;
|
||||||
const auto i = selectedXIndex;
|
|
||||||
const auto isSameToken = _selectedPoints.isSame(selectedXIndex, c);
|
const auto isSameToken = _selectedPoints.isSame(selectedXIndex, c);
|
||||||
auto linePainted = false;
|
auto linePainted = false;
|
||||||
|
|
||||||
|
@ -178,7 +177,6 @@ void BarChartView::paintSelectedXIndex(
|
||||||
/ float64(c.heightLimits.max - c.heightLimits.min);
|
/ float64(c.heightLimits.max - c.heightLimits.min);
|
||||||
const auto yPoint = (1. - yPercentage) * c.rect.height();
|
const auto yPoint = (1. - yPercentage) * c.rect.height();
|
||||||
|
|
||||||
const auto bottomIndex = x - localStart;
|
|
||||||
const auto column = QRectF(
|
const auto column = QRectF(
|
||||||
leftStart + (x - localStart) * w,
|
leftStart + (x - localStart) * w,
|
||||||
c.rect.height() - 0 - yPoint,
|
c.rect.height() - 0 - yPoint,
|
||||||
|
|
Loading…
Add table
Reference in a new issue