Use QString multi-arg overload (clazy warning)

This commit is contained in:
Nyall Dawson 2017-09-25 11:11:03 +10:00
parent 14a48c0349
commit fd9bcd6826
3 changed files with 5 additions and 5 deletions

View File

@ -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" ) )
);
}

View File

@ -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;
}

View File

@ -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() );
}
}