Skip to content

Commit

Permalink
used reverse iterators instead of reverse view
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 12, 2024
1 parent 13e885c commit ab527d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orm/utils/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ QString String::snake(QString string, const QChar delimiter)
}

// Positions stay valid after inserts because reverse iterators used
std::ranges::for_each(positions | ranges::views::reverse,
std::ranges::for_each(positions.crbegin(), positions.crend(),
[&string, delimiter](const QString::size_type pos)
{
const auto previousPos = pos - 1;
Expand Down

0 comments on commit ab527d5

Please sign in to comment.