mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Use QString multi-arg overload (clazy warning)
This commit is contained in:
parent
14a48c0349
commit
fd9bcd6826
@ -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" ) )
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user