Use const_iterator

This commit is contained in:
Jonas Kvinge
2021-10-30 01:57:12 +02:00
parent 9a480eb710
commit ebadb4db0a
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ bool SqlQuery::Exec() {
last_query_ = executedQuery();
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
for (QMap<QString, QVariant>::const_iterator it = bound_values_.begin(); it != bound_values_.end(); ++it) {
for (QMap<QString, QVariant>::const_iterator it = bound_values_.constBegin(); it != bound_values_.constEnd(); ++it) {
last_query_.replace(it.key(), it.value().toString());
}
bound_values_.clear();