mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Remove use of old foreach in SyncJournalDb::setSelectiveSyncList
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
1b73011f59
commit
82f6fd5c27
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue