mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Try to fix build with GCC.
This commit is contained in:
parent
86059f2b5e
commit
85acf051c1
9 changed files with 1 additions and 27 deletions
|
@ -778,8 +778,6 @@ void EmojiListWidget::fillRecent() {
|
||||||
void EmojiListWidget::fillRecentFrom(const std::vector<DocumentId> &list) {
|
void EmojiListWidget::fillRecentFrom(const std::vector<DocumentId> &list) {
|
||||||
const auto test = session().isTestMode();
|
const auto test = session().isTestMode();
|
||||||
const auto owner = &session().data();
|
const auto owner = &session().data();
|
||||||
const auto statuses = &owner->emojiStatuses();
|
|
||||||
const auto manager = &owner->customEmojiManager();
|
|
||||||
_recent.clear();
|
_recent.clear();
|
||||||
_recent.reserve(list.size());
|
_recent.reserve(list.size());
|
||||||
for (const auto &id : list) {
|
for (const auto &id : list) {
|
||||||
|
|
|
@ -271,7 +271,6 @@ void FrameGenerator::Impl::jumpToStart() {
|
||||||
if ((result = av_seek_frame(_format.get(), _streamId, 0, AVSEEK_FLAG_BYTE)) < 0) {
|
if ((result = av_seek_frame(_format.get(), _streamId, 0, AVSEEK_FLAG_BYTE)) < 0) {
|
||||||
if ((result = av_seek_frame(_format.get(), _streamId, 0, AVSEEK_FLAG_FRAME)) < 0) {
|
if ((result = av_seek_frame(_format.get(), _streamId, 0, AVSEEK_FLAG_FRAME)) < 0) {
|
||||||
if ((result = av_seek_frame(_format.get(), _streamId, 0, 0)) < 0) {
|
if ((result = av_seek_frame(_format.get(), _streamId, 0, 0)) < 0) {
|
||||||
char err[AV_ERROR_MAX_STRING_SIZE] = { 0 };
|
|
||||||
LOG(("Webm Error: Unable to av_seek_frame() to the start, ") + wrapError(result));
|
LOG(("Webm Error: Unable to av_seek_frame() to the start, ") + wrapError(result));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2213,8 +2213,6 @@ void ListWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||||
: _overElement
|
: _overElement
|
||||||
? _overElement->data().get()
|
? _overElement->data().get()
|
||||||
: nullptr;
|
: nullptr;
|
||||||
const auto hasWhoReactedItem = overItem
|
|
||||||
&& Api::WhoReactedExists(overItem, Api::WhoReactedList::All);
|
|
||||||
const auto clickedReaction = link
|
const auto clickedReaction = link
|
||||||
? link->property(
|
? link->property(
|
||||||
kReactionsCountEmojiProperty).value<Data::ReactionId>()
|
kReactionsCountEmojiProperty).value<Data::ReactionId>()
|
||||||
|
|
|
@ -404,8 +404,6 @@ TextState UnwrappedMedia::textState(QPoint point, StateRequest request) const {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto pixLeft = usex + (usew - _contentSize.width()) / 2;
|
|
||||||
auto pixTop = (minHeight() - _contentSize.height()) / 2;
|
|
||||||
// Link of content can be nullptr (e.g. sticker without stickerpack).
|
// Link of content can be nullptr (e.g. sticker without stickerpack).
|
||||||
// So we have to process it to avoid overriding the previous result.
|
// So we have to process it to avoid overriding the previous result.
|
||||||
if (_content->link() && inner.contains(point)) {
|
if (_content->link() && inner.contains(point)) {
|
||||||
|
|
|
@ -186,7 +186,6 @@ int Selector::countSkipLeft() const {
|
||||||
const auto addedToMax = _reactions.customAllowed
|
const auto addedToMax = _reactions.customAllowed
|
||||||
|| _reactions.morePremiumAvailable;
|
|| _reactions.morePremiumAvailable;
|
||||||
const auto max = recentCount() + (addedToMax ? 1 : 0);
|
const auto max = recentCount() + (addedToMax ? 1 : 0);
|
||||||
const auto width = max * _size;
|
|
||||||
return std::max(
|
return std::max(
|
||||||
(st::reactStripMinWidth - (max * _size)) / 2,
|
(st::reactStripMinWidth - (max * _size)) / 2,
|
||||||
st::reactStripSkip);
|
st::reactStripSkip);
|
||||||
|
|
|
@ -39,20 +39,6 @@ constexpr auto kHoverScale = 1.24;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] std::shared_ptr<Ui::AnimatedIcon> CreateIconSnapshot(
|
|
||||||
not_null<DocumentData*> document,
|
|
||||||
not_null<Ui::AnimatedIcon*> existing) {
|
|
||||||
const auto frame = existing->frame();
|
|
||||||
return frame.isNull()
|
|
||||||
? CreateIcon(
|
|
||||||
document->activeMediaView().get(),
|
|
||||||
existing->width())
|
|
||||||
: std::make_shared<Ui::AnimatedIcon>(Ui::AnimatedIconDescriptor{
|
|
||||||
.generator = [=] { return std::make_unique<Ui::ImageFrameGenerator>(frame); },
|
|
||||||
.sizeOverride = existing->size(),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
Strip::Strip(
|
Strip::Strip(
|
||||||
|
|
|
@ -67,7 +67,7 @@ public:
|
||||||
[[nodiscard]] Ui::RpWidget *widget() const;
|
[[nodiscard]] Ui::RpWidget *widget() const;
|
||||||
|
|
||||||
void setPremiumClickCallback(Fn<void()> callback);
|
void setPremiumClickCallback(Fn<void()> callback);
|
||||||
[[nodiscrd]] rpl::producer<> updated() const;
|
[[nodiscard]] rpl::producer<> updated() const;
|
||||||
void move(int left, int top, int bottom);
|
void move(int left, int top, int bottom);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -548,7 +548,6 @@ void EmojiStatusTopBar::resolveIsColored() {
|
||||||
}
|
}
|
||||||
_isColoredResolved = true;
|
_isColoredResolved = true;
|
||||||
const auto sticker = document->sticker();
|
const auto sticker = document->sticker();
|
||||||
const auto setId = sticker ? sticker->set.id : 0;
|
|
||||||
_isColored = sticker && (sticker->set.id == coloredSetId);
|
_isColored = sticker && (sticker->set.id == coloredSetId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -816,9 +816,6 @@ void MainMenu::paintEvent(QPaintEvent *e) {
|
||||||
Ui::NameTextOptions());
|
Ui::NameTextOptions());
|
||||||
moveBadge();
|
moveBadge();
|
||||||
}
|
}
|
||||||
const auto paused = _controller->isGifPausedAtLeastFor(
|
|
||||||
GifPauseReason::Layer);
|
|
||||||
|
|
||||||
p.setFont(st::semiboldFont);
|
p.setFont(st::semiboldFont);
|
||||||
p.setPen(st::windowBoldFg);
|
p.setPen(st::windowBoldFg);
|
||||||
_name.drawLeftElided(
|
_name.drawLeftElided(
|
||||||
|
|
Loading…
Add table
Reference in a new issue