From 2294c38aa9cc04e44f520bf5c04427dd5a99056f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 3 Jan 2024 00:44:54 +0100 Subject: [PATCH] CollectionBackend: Rename SqlQuery variable --- src/collection/collectionbackend.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/collection/collectionbackend.cpp b/src/collection/collectionbackend.cpp index 6ad885b75..6f05b32c1 100644 --- a/src/collection/collectionbackend.cpp +++ b/src/collection/collectionbackend.cpp @@ -907,14 +907,14 @@ void CollectionBackend::MarkSongsUnavailable(const SongList &songs, const bool u QMutexLocker l(db_->Mutex()); QSqlDatabase db(db_->Connect()); - SqlQuery remove(db); - remove.prepare(QString("UPDATE %1 SET unavailable = %2 WHERE ROWID = :id").arg(songs_table_).arg(static_cast(unavailable))); + SqlQuery query(db); + query.prepare(QString("UPDATE %1 SET unavailable = %2 WHERE ROWID = :id").arg(songs_table_).arg(static_cast(unavailable))); ScopedTransaction transaction(&db); for (const Song &song : songs) { - remove.BindValue(":id", song.id()); - if (!remove.Exec()) { - db_->ReportErrors(remove); + query.BindValue(":id", song.id()); + if (!query.Exec()) { + db_->ReportErrors(query); return; } }