Reduce scope of some variables

This commit is contained in:
Martin Kleusberg
2014-05-30 19:13:43 +02:00
parent 040be65489
commit 2aaf7345ff

View File

@@ -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){