Skip to content
Permalink
Browse files

Use QString multi-arg overload (clazy warning)

  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 14a48c0 commit fd9bcd68264247b1a41ef037cd1cf73a25ea92b0
@@ -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() );
}
}

0 comments on commit fd9bcd6

Please sign in to comment.
You can’t perform that action at this time.