aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/querymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/querymodel.cpp')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/querymodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/querymodel.cpp b/SQLiteStudio3/coreSQLiteStudio/querymodel.cpp
index 8d20b70..5e57db6 100644
--- a/SQLiteStudio3/coreSQLiteStudio/querymodel.cpp
+++ b/SQLiteStudio3/coreSQLiteStudio/querymodel.cpp
@@ -1,6 +1,7 @@
#include "querymodel.h"
#include "db/db.h"
#include "common/unused.h"
+#include "db/sqlquery.h"
QueryModel::QueryModel(Db* db, QObject *parent) :
QAbstractTableModel(parent), db(db)
@@ -15,7 +16,7 @@ void QueryModel::refresh()
beginResetModel();
loadedRows.clear();
SqlQueryPtr results = db->exec(query);
- for (SqlResultsRowPtr row : results->getAll())
+ for (SqlResultsRowPtr& row : results->getAll())
loadedRows += row;
columns = results->columnCount();