mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Get rid of deprecated ranges::view usage
This commit is contained in:
@@ -536,8 +536,8 @@ std::vector<PollAnswer> Options::toPollAnswers() const {
|
||||
};
|
||||
ranges::copy(
|
||||
_list
|
||||
| ranges::view::filter(&Option::isGood)
|
||||
| ranges::view::transform(makeAnswer),
|
||||
| ranges::views::filter(&Option::isGood)
|
||||
| ranges::views::transform(makeAnswer),
|
||||
ranges::back_inserter(result));
|
||||
return result;
|
||||
}
|
||||
@@ -593,7 +593,7 @@ void Options::removeEmptyTail() {
|
||||
_list,
|
||||
&Option::hasFocus);
|
||||
const auto end = _list.end();
|
||||
const auto reversed = ranges::view::reverse(_list);
|
||||
const auto reversed = ranges::views::reverse(_list);
|
||||
const auto emptyItem = ranges::find_if(
|
||||
reversed,
|
||||
ranges::not_fn(&Option::isEmpty)).base();
|
||||
|
Reference in New Issue
Block a user