From 13e885cd897c0cdd971ced3c7234fcc4ecb6d59c Mon Sep 17 00:00:00 2001 From: silverqx Date: Mon, 12 Aug 2024 19:29:53 +0200 Subject: [PATCH] bugfix in String::snake() --- src/orm/utils/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orm/utils/string.cpp b/src/orm/utils/string.cpp index b10e499b4..62de58290 100644 --- a/src/orm/utils/string.cpp +++ b/src/orm/utils/string.cpp @@ -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;