Commit 8147b10d authored by Fabian Kosmale's avatar Fabian Kosmale
Browse files

use range based for loop

parent 039306e3
......@@ -351,11 +351,10 @@ QList<QVariant> SQLiteResource::getColumn(const QString& columnName)
QMutexLocker locker(&d->mutex);
QList<QVariant> data;
for (QList<QVariantMap>::const_iterator it = d->table.begin(); it < d->table.end(); it++) {
QVariantMap map( *it );
for (const auto& elem: d->table) {
QVariantMap map(elem);
if (map.count(columnName) == 0) {
throw SQLiteException("Unexistent column in table");
throw SQLiteException("Nonexistent column in table");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment