Skip to content

Commit

Permalink
bugfix in String::snake()
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 12, 2024
1 parent 6430000 commit 13e885c
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,
std::ranges::for_each(positions | ranges::views::reverse,
[&string, delimiter](const QString::size_type pos)
{
const auto previousPos = pos - 1;
Expand Down

0 comments on commit 13e885c

Please sign in to comment.