Support build with range-v3 0.9.1.
This commit is contained in:
parent
11aa7bcd4e
commit
199e51706f
2 changed files with 3 additions and 3 deletions
|
|
@ -261,7 +261,7 @@ QImage BlurLargeImage(QImage image, int radius) {
|
||||||
const auto dvs = take(dvcount);
|
const auto dvs = take(dvcount);
|
||||||
|
|
||||||
auto &&ints = ranges::view::ints;
|
auto &&ints = ranges::view::ints;
|
||||||
for (auto &&[value, index] : ranges::view::zip(dvs, ints(0))) {
|
for (auto &&[value, index] : ranges::view::zip(dvs, ints(0, ranges::unreachable))) {
|
||||||
value = (index / divsum);
|
value = (index / divsum);
|
||||||
}
|
}
|
||||||
const auto dv = dvs.data();
|
const auto dv = dvs.data();
|
||||||
|
|
|
||||||
|
|
@ -1140,7 +1140,7 @@ const QRegularExpression &RegExpWordSplit() {
|
||||||
|
|
||||||
[[nodiscard]] QString ExpandCustomLinks(const TextWithTags &text) {
|
[[nodiscard]] QString ExpandCustomLinks(const TextWithTags &text) {
|
||||||
const auto entities = ConvertTextTagsToEntities(text.tags);
|
const auto entities = ConvertTextTagsToEntities(text.tags);
|
||||||
auto &&urls = ranges::make_iterator_range(
|
auto &&urls = ranges::make_subrange(
|
||||||
entities.begin(),
|
entities.begin(),
|
||||||
entities.end()
|
entities.end()
|
||||||
) | ranges::view::filter([](const EntityInText &entity) {
|
) | ranges::view::filter([](const EntityInText &entity) {
|
||||||
|
|
@ -2097,7 +2097,7 @@ EntityInText::EntityInText(
|
||||||
int EntityInText::FirstMonospaceOffset(
|
int EntityInText::FirstMonospaceOffset(
|
||||||
const EntitiesInText &entities,
|
const EntitiesInText &entities,
|
||||||
int textLength) {
|
int textLength) {
|
||||||
auto &&monospace = ranges::make_iterator_range(
|
auto &&monospace = ranges::make_subrange(
|
||||||
entities.begin(),
|
entities.begin(),
|
||||||
entities.end()
|
entities.end()
|
||||||
) | ranges::view::filter([](const EntityInText & entity) {
|
) | ranges::view::filter([](const EntityInText & entity) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue