mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix build with GCC.
This commit is contained in:
@@ -804,9 +804,6 @@ void PinsLimitBox(
|
|||||||
void ForumPinsLimitBox(
|
void ForumPinsLimitBox(
|
||||||
not_null<Ui::GenericBox*> box,
|
not_null<Ui::GenericBox*> box,
|
||||||
not_null<Data::Forum*> forum) {
|
not_null<Data::Forum*> forum) {
|
||||||
const auto premium = false;
|
|
||||||
const auto premiumPossible = false;
|
|
||||||
|
|
||||||
const auto current = forum->owner().pinnedChatsLimit(forum) * 1.;
|
const auto current = forum->owner().pinnedChatsLimit(forum) * 1.;
|
||||||
|
|
||||||
auto text = tr::lng_forum_pin_limit(
|
auto text = tr::lng_forum_pin_limit(
|
||||||
|
@@ -315,9 +315,7 @@ void ForumTopic::applyTopic(const MTPDforumTopic &data) {
|
|||||||
applyIsMy(data.is_my());
|
applyIsMy(data.is_my());
|
||||||
setClosed(data.is_closed());
|
setClosed(data.is_closed());
|
||||||
|
|
||||||
if (min) {
|
if (!min) {
|
||||||
int a = 0;
|
|
||||||
} else {
|
|
||||||
owner().setPinnedFromEntryList(this, data.is_pinned());
|
owner().setPinnedFromEntryList(this, data.is_pinned());
|
||||||
owner().notifySettings().apply(this, data.vnotify_settings());
|
owner().notifySettings().apply(this, data.vnotify_settings());
|
||||||
|
|
||||||
|
@@ -555,7 +555,6 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
|
|||||||
|
|
||||||
const auto &list = _shownList->all();
|
const auto &list = _shownList->all();
|
||||||
const auto shownBottom = _shownList->height() - skipTopHeight();
|
const auto shownBottom = _shownList->height() - skipTopHeight();
|
||||||
const auto active = activeEntry.key;
|
|
||||||
const auto selected = isPressed()
|
const auto selected = isPressed()
|
||||||
? (_pressed ? _pressed->key() : Key())
|
? (_pressed ? _pressed->key() : Key())
|
||||||
: (_selected ? _selected->key() : Key());
|
: (_selected ? _selected->key() : Key());
|
||||||
|
@@ -173,7 +173,6 @@ void MessageView::prepare(
|
|||||||
st::dialogsTextStyle,
|
st::dialogsTextStyle,
|
||||||
std::move(sender),
|
std::move(sender),
|
||||||
DialogTextOptions());
|
DialogTextOptions());
|
||||||
const auto topicTill = preview.imagesInTextPosition;
|
|
||||||
preview.text = Text::Mid(preview.text, senderTill);
|
preview.text = Text::Mid(preview.text, senderTill);
|
||||||
} else {
|
} else {
|
||||||
_senderCache = { st::dialogsTextWidthMin };
|
_senderCache = { st::dialogsTextWidthMin };
|
||||||
|
@@ -106,8 +106,6 @@ void TopicsView::paint(
|
|||||||
Painter &p,
|
Painter &p,
|
||||||
const QRect &geometry,
|
const QRect &geometry,
|
||||||
const PaintContext &context) const {
|
const PaintContext &context) const {
|
||||||
auto available = geometry.width();
|
|
||||||
|
|
||||||
p.setFont(st::dialogsTextFont);
|
p.setFont(st::dialogsTextFont);
|
||||||
p.setPen(context.active
|
p.setPen(context.active
|
||||||
? st::dialogsTextFgActive
|
? st::dialogsTextFgActive
|
||||||
@@ -119,7 +117,6 @@ void TopicsView::paint(
|
|||||||
: context.selected
|
: context.selected
|
||||||
? st::dialogsTextPaletteArchiveOver
|
? st::dialogsTextPaletteArchiveOver
|
||||||
: st::dialogsTextPaletteArchive);
|
: st::dialogsTextPaletteArchive);
|
||||||
auto index = 0;
|
|
||||||
auto rect = geometry;
|
auto rect = geometry;
|
||||||
auto skipBig = _jumpToTopic && !context.active;
|
auto skipBig = _jumpToTopic && !context.active;
|
||||||
for (const auto &title : _titles) {
|
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 use1 = std::min(context.width1, availableWidth);
|
||||||
const auto use2 = std::min(context.width2, availableWidth);
|
const auto use2 = std::min(context.width2, availableWidth);
|
||||||
const auto padding = st::forumDialogJumpPadding;
|
const auto padding = st::forumDialogJumpPadding;
|
||||||
const auto radius = st::forumDialogJumpRadius;
|
|
||||||
const auto origin = context.geometry.topLeft();
|
const auto origin = context.geometry.topLeft();
|
||||||
const auto delta = std::abs(use1 - use2);
|
const auto delta = std::abs(use1 - use2);
|
||||||
if (delta <= context.st->topicsSkip / 2) {
|
if (delta <= context.st->topicsSkip / 2) {
|
||||||
|
Reference in New Issue
Block a user