Use references for iterating through object map

This commit is contained in:
Vladyslav Tronko
2017-01-15 03:08:00 +02:00
parent 59bf2aeecc
commit d3dde35f90

View File

@@ -79,7 +79,7 @@ ForeignKeyEditorDelegate::ForeignKeyEditorDelegate(const DBBrowserDB& db, sqlb::
, m_table(table)
{
const auto objects = m_db.getBrowsableObjects();
for (auto obj : objects) {
for (auto& obj : objects) {
if ("table" == obj.gettype()) {
QString tableName = obj.table.name();
m_tablesIds.insert(tableName, obj.table.fieldNames());