Skip to content

Commit

Permalink
Reduce scope of some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MKleusberg committed May 30, 2014
1 parent 040be65 commit 2aaf734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sqlitedb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 2aaf734

Please sign in to comment.