Skip to content
Permalink
Browse files

Fix indentation - issue #20337

Hopefully this is correct.
I'm not having much luck getting prepare-commit.sh or astyle.sh to run on Windows.
  • Loading branch information
dwadler authored and nyalldawson committed Nov 17, 2018
1 parent dd2ed9c commit ba81a2ee137cfa3e7b164763ec3b9ee57f899e07
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/providers/db2/qgsdb2provider.cpp
  2. +2 −2 src/providers/db2/qgsdb2provider.h
@@ -222,14 +222,14 @@ QSqlDatabase QgsDb2Provider::getDatabase( const QString &connInfo, QString &errM
QSqlDatabase::removeDatabase( connectionName );
}, Qt::DirectConnection );
}
}
}
else /* if existing database connection */
{
QgsDebugMsg( QStringLiteral( "found existing connection, use the existing one" ) );
db = QSqlDatabase::database( threadSafeConnectionName );
}
locker.unlock();
locker.unlock();

db.setHostName( host );
db.setPort( port.toInt() );
bool connected = false;
@@ -124,8 +124,8 @@ class QgsDb2Provider : public QgsVectorDataProvider
* Returns a thread-safe connection name for use with QSqlDatabase
*/
static QString dbConnectionName( const QString &name );
static QMutex sMutex;

static QMutex sMutex;

QgsFields mAttributeFields; //fields
QMap<int, QVariant> mDefaultValues;

0 comments on commit ba81a2e

Please sign in to comment.
You can’t perform that action at this time.