Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use QString multi-arg overload (clazy warning)
  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 14a48c0 commit fd9bcd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/dwg/qgsdwgimporter.cpp
Expand Up @@ -832,9 +832,9 @@ void QgsDwgImporter::addLType( const DRW_LType &data )
if ( OGR_L_CreateFeature( layer, f ) != OGRERR_NONE )
{
LOG( QObject::tr( "Could not add %3 %1 [%2]" )
.arg( data.name.c_str() )
.arg( QString::fromUtf8( CPLGetLastErrorMsg() ) )
.arg( QObject::tr( "line type" ) )
.arg( data.name.c_str(),
QString::fromUtf8( CPLGetLastErrorMsg() ),
QObject::tr( "line type" ) )
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresdataitems.cpp
Expand Up @@ -229,7 +229,7 @@ bool QgsPGConnectionItem::handleDrop( const QMimeData *data, const QString &toSc
QgsVectorLayer *srcLayer = u.vectorLayer( owner, error );
if ( !srcLayer )
{
importResults.append( tr( "%1: %2" ).arg( u.name ).arg( error ) );
importResults.append( tr( "%1: %2" ).arg( u.name, error ) );
hasError = true;
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/providers/virtual/qgsvirtuallayersqlitehelper.cpp
Expand Up @@ -96,7 +96,7 @@ namespace Sqlite
int r = sqlite3_prepare_v2( db, ba.constData(), ba.size(), &stmt_, nullptr );
if ( r )
{
QString err = QStringLiteral( "Query preparation error on %1: %2" ).arg( q ).arg( sqlite3_errmsg( db ) );
QString err = QStringLiteral( "Query preparation error on %1: %2" ).arg( q, sqlite3_errmsg( db ) );
throw std::runtime_error( err.toUtf8().constData() );
}
}
Expand Down

0 comments on commit fd9bcd6

Please sign in to comment.