mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Use references for iterating through object map
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user