Fix build on Windows.

This commit is contained in:
John Preston 2021-07-06 15:56:43 +03:00
parent 9ba1af2eb9
commit 8eedc7b2ba

View file

@ -905,8 +905,8 @@ void TabbedSelector::fillTabsSliderSections() {
? !masks()->mySetsEmpty() ? !masks()->mySetsEmpty()
: true; : true;
}) | ranges::views::transform([&](const Tab &tab) { }) | ranges::views::transform([&](const Tab &tab) {
return [type = tab.type()] { return [&] {
switch (type) { switch (tab.type()) {
case SelectorTab::Emoji: case SelectorTab::Emoji:
return tr::lng_switch_emoji; return tr::lng_switch_emoji;
case SelectorTab::Stickers: case SelectorTab::Stickers:
@ -916,6 +916,7 @@ void TabbedSelector::fillTabsSliderSections() {
case SelectorTab::Masks: case SelectorTab::Masks:
return tr::lng_switch_masks; return tr::lng_switch_masks;
} }
Unexpected("SelectorTab value in fillTabsSliderSections.");
}()(tr::now).toUpper(); }()(tr::now).toUpper();
}) | ranges::to_vector; }) | ranges::to_vector;
_tabsSlider->setSections(sections); _tabsSlider->setSections(sections);