Skip to content

Commit ba81a2e

Browse files
dwadlernyalldawson
authored andcommittedNov 20, 2018
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.
1 parent dd2ed9c commit ba81a2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎src/providers/db2/qgsdb2provider.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,14 @@ QSqlDatabase QgsDb2Provider::getDatabase( const QString &connInfo, QString &errM
222222
QSqlDatabase::removeDatabase( connectionName );
223223
}, Qt::DirectConnection );
224224
}
225-
}
225+
}
226226
else /* if existing database connection */
227227
{
228228
QgsDebugMsg( QStringLiteral( "found existing connection, use the existing one" ) );
229229
db = QSqlDatabase::database( threadSafeConnectionName );
230230
}
231-
locker.unlock();
232-
231+
locker.unlock();
232+
233233
db.setHostName( host );
234234
db.setPort( port.toInt() );
235235
bool connected = false;

‎src/providers/db2/qgsdb2provider.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ class QgsDb2Provider : public QgsVectorDataProvider
124124
* Returns a thread-safe connection name for use with QSqlDatabase
125125
*/
126126
static QString dbConnectionName( const QString &name );
127-
128-
static QMutex sMutex;
127+
128+
static QMutex sMutex;
129129

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

0 commit comments

Comments
 (0)
Please sign in to comment.