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