From 82e613206ea335939726cd99aa413cdbb5542bd6 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 6 Sep 2024 22:58:21 +0200 Subject: [PATCH] CollectionQuery: Add const --- src/collection/collectionquery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collection/collectionquery.cpp b/src/collection/collectionquery.cpp index 1eb81acb0..449ffa789 100644 --- a/src/collection/collectionquery.cpp +++ b/src/collection/collectionquery.cpp @@ -64,10 +64,10 @@ void CollectionQuery::AddWhere(const QString &column, const QVariant &value, con // Ignore 'literal' for IN if (op.compare(QLatin1String("IN"), Qt::CaseInsensitive) == 0) { - QStringList values = value.toStringList(); + const QStringList values = value.toStringList(); QStringList final_values; final_values.reserve(values.count()); - for (const QString &single_value : std::as_const(values)) { + for (const QString &single_value : values) { final_values.append(QStringLiteral("?")); bound_values_ << single_value; }