Beta version 5.7.3: Fix build with Xcode.

This commit is contained in:
John Preston 2024-11-13 00:51:35 +04:00
parent 1ed34c6fa0
commit 7e2e510d8a

View file

@ -64,7 +64,7 @@ void ChatsFiltersTabs::fitWidthToSections() {
{
_sections.clear();
enumerateSections([&](Section &section) {
_sections.emplace_back(not_null{ &section }, 0, false);
_sections.push_back({ not_null{ &section }, 0, false });
return true;
});
}
@ -387,7 +387,7 @@ void ChatsFiltersTabs::reorderSections(int oldIndex, int newIndex) {
_sections.clear();
auto left = 0;
enumerateSections([&](Section &section) {
_sections.emplace_back(not_null{ &section }, 0, false);
_sections.push_back({ not_null{ &section }, 0, false });
section.left = left;
left += section.width;
return true;