From a598e0d36c4b47151eeb6159299587ad21442424 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sat, 4 Jul 2015 18:57:50 +0200 Subject: [PATCH] Fix sqlb::Table::fieldList() This suddenly failed on my system and broke the CSV import. Maybe because of some new version of some software? Either way, the new version should work anywhere. --- src/sqlitetypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlitetypes.cpp b/src/sqlitetypes.cpp index acb0fa3d..0f999bac 100644 --- a/src/sqlitetypes.cpp +++ b/src/sqlitetypes.cpp @@ -146,7 +146,7 @@ QStringList Table::fieldList() const { QStringList sl; - foreach(FieldPtr f, m_fields) { + foreach(const FieldPtr& f, m_fields) { sl << f->toString(); }