mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix build with GCC.
This commit is contained in:
@@ -232,8 +232,6 @@ private:
|
||||
int resizeGetHeight(int width) override;
|
||||
void clicked(int index);
|
||||
|
||||
[[nodiscard]] View *find(const AttributeDescriptor &descriptor);
|
||||
|
||||
const not_null<Delegate*> _delegate;
|
||||
const not_null<Window::SessionController*> _window;
|
||||
const not_null<const Data::UniqueGiftAttributes*> _attributes;
|
||||
@@ -323,7 +321,6 @@ void AttributeButton::setup() {
|
||||
_patternNow = {};
|
||||
_patternNext = {};
|
||||
_patternFrame = QImage();
|
||||
void validatePatternFrame();
|
||||
}, [&](const GiftModel &data) {
|
||||
setDocument(data.document);
|
||||
_patternNow = {};
|
||||
@@ -1185,17 +1182,6 @@ void AttributesList::clicked(int index) {
|
||||
_selected = now;
|
||||
}
|
||||
|
||||
AttributesList::View *AttributesList::find(
|
||||
const AttributeDescriptor &descriptor) {
|
||||
const auto i = ranges::find(*_list, descriptor, &Entry::descriptor);
|
||||
if (i == end(*_list)) {
|
||||
return nullptr;
|
||||
}
|
||||
const auto index = int(i - begin(*_list));
|
||||
const auto j = ranges::find(_views, index, &View::index);
|
||||
return (j != end(_views)) ? &*j : nullptr;
|
||||
}
|
||||
|
||||
void AttributesList::refreshAbout() {
|
||||
auto text = [&] {
|
||||
switch (_tab.current()) {
|
||||
|
||||
@@ -3972,9 +3972,6 @@ void Session::webpageApplyFields(
|
||||
|
||||
using WebPageAuctionPtr = std::unique_ptr<WebPageAuction>;
|
||||
const auto lookupAuction = [&]() -> WebPageAuctionPtr {
|
||||
const auto toUint = [](const MTPint &c) {
|
||||
return (uint32(1) << 24) | uint32(c.v);
|
||||
};
|
||||
if (const auto attributes = data.vattributes()) {
|
||||
for (const auto &attribute : attributes->v) {
|
||||
return attribute.match([&](
|
||||
|
||||
@@ -634,7 +634,6 @@ void Service::draw(Painter &p, const PaintContext &context) const {
|
||||
|
||||
const auto item = data();
|
||||
const auto keyboard = item->inlineReplyKeyboard();
|
||||
const auto fullGeometry = g;
|
||||
if (keyboard) {
|
||||
// We need to count geometry without keyboard for bubble selection
|
||||
// intervals counting below.
|
||||
|
||||
Reference in New Issue
Block a user