Skip to content

Commit d9b4ae5

Browse files
committedNov 6, 2017
Minor change: QString -> QStringLiteral in some debug messages
1 parent 7e69936 commit d9b4ae5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎src/app/qgsversionmigration.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,15 @@ QgsError Qgs2To3Migration::migrateAuthDb()
273273
// Do not overwrite!
274274
if ( QFile( newAuthDbFilePath ).exists( ) )
275275
{
276-
QString msg = QString( "Could not copy old auth DB to %1: file already exists!" ).arg( newAuthDbFilePath );
276+
QString msg = QStringLiteral( "Could not copy old auth DB to %1: file already exists!" ).arg( newAuthDbFilePath );
277277
QgsDebugMsg( msg );
278278
error.append( msg );
279279

280280
}
281281
else
282282
{
283-
QgsDebugMsg( QString( "OLD AUTH DB FILE %1" ).arg( oldAuthDbFilePath ) );
283+
QgsDebugMsg( QStringLiteral( "OLD AUTH DB FILE %1" ).arg( oldAuthDbFilePath ) );
284+
QgsDebugMsg( QStringLiteral( "NEW AUTH DB FILE %1" ).arg( newAuthDbFilePath ) );
284285
QFile oldDbFile( oldAuthDbFilePath );
285286
if ( oldDbFile.exists( ) )
286287
{
@@ -290,14 +291,14 @@ QgsError Qgs2To3Migration::migrateAuthDb()
290291
}
291292
else
292293
{
293-
QString msg = QString( "Could not copy auth DB %1 to %2" ).arg( oldAuthDbFilePath, newAuthDbFilePath );
294+
QString msg = QStringLiteral( "Could not copy auth DB %1 to %2" ).arg( oldAuthDbFilePath, newAuthDbFilePath );
294295
QgsDebugMsg( msg );
295296
error.append( msg );
296297
}
297298
}
298299
else
299300
{
300-
QString msg = QString( "Could not copy auth DB %1 to %2: old DB does not exists!" ).arg( oldAuthDbFilePath, newAuthDbFilePath );
301+
QString msg = QStringLiteral( "Could not copy auth DB %1 to %2: old DB does not exists!" ).arg( oldAuthDbFilePath, newAuthDbFilePath );
301302
QgsDebugMsg( msg );
302303
error.append( msg );
303304
}

0 commit comments

Comments
 (0)
Please sign in to comment.