mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-04-24 17:58:37 -05:00
tried to fix ranges for older clang
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
#include <QStringList>
|
||||
|
||||
#include <cmath>
|
||||
#include <ranges>
|
||||
|
||||
#include <range/v3/view/reverse.hpp>
|
||||
|
||||
#include "orm/constants.hpp"
|
||||
|
||||
@@ -95,7 +96,7 @@ QString String::rtrim(const QString &string, const QString &characters)
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QString::size_type position = 0;
|
||||
|
||||
for (const auto &itString : std::ranges::reverse_view(string))
|
||||
for (const auto &itString : string | ranges::views::reverse)
|
||||
if (characters.contains(itString))
|
||||
++position;
|
||||
else
|
||||
@@ -105,7 +106,7 @@ QString String::rtrim(const QString &string, const QString &characters)
|
||||
#else
|
||||
QString::size_type position = string.size();
|
||||
|
||||
for (const auto &itString : std::ranges::reverse_view(string))
|
||||
for (const auto &itString : string | ranges::views::reverse)
|
||||
if (characters.contains(itString))
|
||||
--position;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user