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