From 2aaf7345ff89ba53c2e2318af13b70db1db2a9ca Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Fri, 30 May 2014 19:13:43 +0200 Subject: [PATCH] Reduce scope of some variables --- src/sqlitedb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sqlitedb.cpp b/src/sqlitedb.cpp index 0a1ab5e1..b40047e2 100644 --- a/src/sqlitedb.cpp +++ b/src/sqlitedb.cpp @@ -827,15 +827,15 @@ QStringList DBBrowserDB::decodeCSV(const QString & csvfilename, char sep, char q QFile file(csvfilename); QStringList result; QString current = ""; - bool inquotemode = false; - bool inescapemode = false; - int recs = 0; *numfields = 0; if ( file.open( QIODevice::ReadWrite ) ) { QProgressDialog progress(QObject::tr("Decoding CSV file..."), QObject::tr("Cancel"), 0, file.size()); progress.setWindowModality(Qt::ApplicationModal); char c=0; + bool inquotemode = false; + bool inescapemode = false; + int recs = 0; while(file.getChar(&c)) { if (c==quote){