2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replace mapbox variant with std::variant.

This commit is contained in:
John Preston
2020-08-31 12:14:53 +04:00
parent b3eb41b989
commit 734d834a20
58 changed files with 207 additions and 194 deletions

View File

@@ -395,7 +395,7 @@ void Rows::mouseReleaseEvent(QMouseEvent *e) {
activateByIndex(data.index);
}, [&](MenuSelection data) {
showMenu(data.index);
}, [](std::nullopt_t) {});
}, [](v::null_t) {});
}
}
@@ -601,7 +601,7 @@ int Rows::indexFromSelection(Selection selected) const {
return data.index;
}, [&](MenuSelection data) {
return data.index;
}, [](std::nullopt_t) {
}, [](v::null_t) {
return -1;
});
}
@@ -648,7 +648,7 @@ rpl::producer<bool> Rows::isEmpty() const {
}
void Rows::repaint(Selection selected) {
selected.match([](std::nullopt_t) {
selected.match([](v::null_t) {
}, [&](const auto &data) {
repaint(data.index);
});