Skip to content

Commit

Permalink
CollectionQuery: Add const
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Sep 6, 2024
1 parent f103815 commit 82e6132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collection/collectionquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 82e6132

Please sign in to comment.