Signed-off-by: Harald Eilertsen <haraldei@anduin.net>
auto oldBlackListSet = journal->getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok).toSet();
if (ok) {
auto blackListSet = newList.toSet();
- auto changes = (oldBlackListSet - blackListSet) + (blackListSet - oldBlackListSet);
- foreach (const auto &it, changes) {
+ const auto changes = (oldBlackListSet - blackListSet) + (blackListSet - oldBlackListSet);
+ for (const auto &it : changes) {
journal->avoidReadFromDbOnNextSync(it);
}
return false;
}
- foreach (QSslError error, errors) {
+ for (const auto &error : qAsConst(errors)) {
certs->append(error.certificate());
}
return true;