mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-24 06:33:41 +01:00
CollectionQuery: Add const
This commit is contained in:
parent
f1038152e9
commit
82e613206e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user