1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-24 06:33:41 +01:00

CollectionQuery: Add const

This commit is contained in:
Jonas Kvinge 2024-09-06 22:58:21 +02:00
parent f1038152e9
commit 82e613206e

View File

@ -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;
}