mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix build with GCC.
This commit is contained in:
parent
937d243a4c
commit
79a2d85287
5 changed files with 1 additions and 12 deletions
Telegram/SourceFiles
|
@ -804,9 +804,6 @@ void PinsLimitBox(
|
|||
void ForumPinsLimitBox(
|
||||
not_null<Ui::GenericBox*> box,
|
||||
not_null<Data::Forum*> forum) {
|
||||
const auto premium = false;
|
||||
const auto premiumPossible = false;
|
||||
|
||||
const auto current = forum->owner().pinnedChatsLimit(forum) * 1.;
|
||||
|
||||
auto text = tr::lng_forum_pin_limit(
|
||||
|
|
|
@ -315,9 +315,7 @@ void ForumTopic::applyTopic(const MTPDforumTopic &data) {
|
|||
applyIsMy(data.is_my());
|
||||
setClosed(data.is_closed());
|
||||
|
||||
if (min) {
|
||||
int a = 0;
|
||||
} else {
|
||||
if (!min) {
|
||||
owner().setPinnedFromEntryList(this, data.is_pinned());
|
||||
owner().notifySettings().apply(this, data.vnotify_settings());
|
||||
|
||||
|
|
|
@ -555,7 +555,6 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
|
|||
|
||||
const auto &list = _shownList->all();
|
||||
const auto shownBottom = _shownList->height() - skipTopHeight();
|
||||
const auto active = activeEntry.key;
|
||||
const auto selected = isPressed()
|
||||
? (_pressed ? _pressed->key() : Key())
|
||||
: (_selected ? _selected->key() : Key());
|
||||
|
|
|
@ -173,7 +173,6 @@ void MessageView::prepare(
|
|||
st::dialogsTextStyle,
|
||||
std::move(sender),
|
||||
DialogTextOptions());
|
||||
const auto topicTill = preview.imagesInTextPosition;
|
||||
preview.text = Text::Mid(preview.text, senderTill);
|
||||
} else {
|
||||
_senderCache = { st::dialogsTextWidthMin };
|
||||
|
|
|
@ -106,8 +106,6 @@ void TopicsView::paint(
|
|||
Painter &p,
|
||||
const QRect &geometry,
|
||||
const PaintContext &context) const {
|
||||
auto available = geometry.width();
|
||||
|
||||
p.setFont(st::dialogsTextFont);
|
||||
p.setPen(context.active
|
||||
? st::dialogsTextFgActive
|
||||
|
@ -119,7 +117,6 @@ void TopicsView::paint(
|
|||
: context.selected
|
||||
? st::dialogsTextPaletteArchiveOver
|
||||
: st::dialogsTextPaletteArchive);
|
||||
auto index = 0;
|
||||
auto rect = geometry;
|
||||
auto skipBig = _jumpToTopic && !context.active;
|
||||
for (const auto &title : _titles) {
|
||||
|
@ -224,7 +221,6 @@ JumpToLastGeometry FillJumpToLastBg(QPainter &p, JumpToLastBg context) {
|
|||
const auto use1 = std::min(context.width1, availableWidth);
|
||||
const auto use2 = std::min(context.width2, availableWidth);
|
||||
const auto padding = st::forumDialogJumpPadding;
|
||||
const auto radius = st::forumDialogJumpRadius;
|
||||
const auto origin = context.geometry.topLeft();
|
||||
const auto delta = std::abs(use1 - use2);
|
||||
if (delta <= context.st->topicsSkip / 2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue