Remove use of old foreach in SyncJournalDb::setSelectiveSyncList

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-07-10 17:20:44 +08:00
parent 1b73011f59
commit 82f6fd5c27
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -2013,7 +2013,7 @@ void SyncJournalDb::setSelectiveSyncList(SyncJournalDb::SelectiveSyncListType ty
}
SqlQuery insQuery("INSERT INTO selectivesync VALUES (?1, ?2)", _db);
foreach (const auto &path, list) {
for (const auto &path : list) {
insQuery.reset_and_clear_bindings();
insQuery.bindValue(1, path);
insQuery.bindValue(2, int(type));