Skip to content

Commit

Permalink
Fix indentation - issue #20337
Browse files Browse the repository at this point in the history
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 20, 2018
1 parent dd2ed9c commit ba81a2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/providers/db2/qgsdb2provider.cpp
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/providers/db2/qgsdb2provider.h
Expand Up @@ -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;
Expand Down

0 comments on commit ba81a2e

Please sign in to comment.