2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix build with GCC.

This commit is contained in:
John Preston
2022-11-21 22:02:51 +00:00
parent 937d243a4c
commit 79a2d85287
5 changed files with 1 additions and 12 deletions

View File

@@ -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());

View File

@@ -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 };

View File

@@ -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) {