Skip to content

Commit fd9bcd6

Browse files
committedSep 25, 2017
Use QString multi-arg overload (clazy warning)
1 parent 14a48c0 commit fd9bcd6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎src/app/dwg/qgsdwgimporter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,9 @@ void QgsDwgImporter::addLType( const DRW_LType &data )
832832
if ( OGR_L_CreateFeature( layer, f ) != OGRERR_NONE )
833833
{
834834
LOG( QObject::tr( "Could not add %3 %1 [%2]" )
835-
.arg( data.name.c_str() )
836-
.arg( QString::fromUtf8( CPLGetLastErrorMsg() ) )
837-
.arg( QObject::tr( "line type" ) )
835+
.arg( data.name.c_str(),
836+
QString::fromUtf8( CPLGetLastErrorMsg() ),
837+
QObject::tr( "line type" ) )
838838
);
839839
}
840840

‎src/providers/postgres/qgspostgresdataitems.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ bool QgsPGConnectionItem::handleDrop( const QMimeData *data, const QString &toSc
229229
QgsVectorLayer *srcLayer = u.vectorLayer( owner, error );
230230
if ( !srcLayer )
231231
{
232-
importResults.append( tr( "%1: %2" ).arg( u.name ).arg( error ) );
232+
importResults.append( tr( "%1: %2" ).arg( u.name, error ) );
233233
hasError = true;
234234
continue;
235235
}

‎src/providers/virtual/qgsvirtuallayersqlitehelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace Sqlite
9696
int r = sqlite3_prepare_v2( db, ba.constData(), ba.size(), &stmt_, nullptr );
9797
if ( r )
9898
{
99-
QString err = QStringLiteral( "Query preparation error on %1: %2" ).arg( q ).arg( sqlite3_errmsg( db ) );
99+
QString err = QStringLiteral( "Query preparation error on %1: %2" ).arg( q, sqlite3_errmsg( db ) );
100100
throw std::runtime_error( err.toUtf8().constData() );
101101
}
102102
}

0 commit comments

Comments
 (0)
Please sign in to comment.