diff --git a/src/ForeignKeyEditorDelegate.cpp b/src/ForeignKeyEditorDelegate.cpp index cac975a3..0668b144 100644 --- a/src/ForeignKeyEditorDelegate.cpp +++ b/src/ForeignKeyEditorDelegate.cpp @@ -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());