diff --git a/src/app/qgsbookmarks.cpp b/src/app/qgsbookmarks.cpp index 35267ef37bd..5fdd8493335 100644 --- a/src/app/qgsbookmarks.cpp +++ b/src/app/qgsbookmarks.cpp @@ -442,10 +442,10 @@ bool QgsProjectBookmarksTableModel::setData( const QModelIndex& index, const QVa switch ( index.column() ) { case 1: - QgsProject::instance()->writeEntry( "Bookmarks", QString( "/Row-%1/Name" ).arg( index.row() ), value.value() ); + QgsProject::instance()->writeEntry( "Bookmarks", QString( "/Row-%1/Name" ).arg( index.row() ), value.toString() ); return true; case 2: - QgsProject::instance()->writeEntry( "Bookmarks", QString( "/Row-%1/Project" ).arg( index.row() ), value.value() ); + QgsProject::instance()->writeEntry( "Bookmarks", QString( "/Row-%1/Project" ).arg( index.row() ), value.toString() ); return true; case 3: QgsProject::instance()->writeEntry( "Bookmarks", QString( "/Row-%1/MinX" ).arg( index.row() ), value.toDouble() ); diff --git a/src/core/qgsgml.cpp b/src/core/qgsgml.cpp index 48ef9e85374..b01e4014d02 100644 --- a/src/core/qgsgml.cpp +++ b/src/core/qgsgml.cpp @@ -387,7 +387,7 @@ QgsGmlStreamingParser::QgsGmlStreamingParser( const QList& laye if ( alreadyFoundGeometry ) { QgsDebugMsg( QString( "Will ignore geometry field %1 from typename %2" ). - arg( mLayerProperties[i].mGeometryAttribute ).arg( mLayerProperties[i].mName ) ); + arg( mLayerProperties[i].mGeometryAttribute, mLayerProperties[i].mName ) ); mLayerProperties[i].mGeometryAttribute.clear(); } alreadyFoundGeometry = true; diff --git a/src/core/qgsjsonutils.cpp b/src/core/qgsjsonutils.cpp index db08f76f1c1..45742603f49 100644 --- a/src/core/qgsjsonutils.cpp +++ b/src/core/qgsjsonutils.cpp @@ -291,12 +291,12 @@ QVariantList QgsJSONUtils::parseArray( const QString& json, QVariant::Type type QVariantList result; if ( error.error != QJsonParseError::NoError ) { - QgsLogger::warning( QString( "Cannot parse json (%1): %2" ).arg( error.errorString() ).arg( json ) ); + QgsLogger::warning( QString( "Cannot parse json (%1): %2" ).arg( error.errorString(), json ) ); return result; } if ( !jsonDoc.isArray() ) { - QgsLogger::warning( QString( "Cannot parse json (%1) as array: %2" ).arg( error.errorString() ).arg( json ) ); + QgsLogger::warning( QString( "Cannot parse json (%1) as array: %2" ).arg( error.errorString(), json ) ); return result; } Q_FOREACH ( const QJsonValue cur, jsonDoc.array() ) diff --git a/src/core/qgssqlstatement.cpp b/src/core/qgssqlstatement.cpp index 05ec0d625d7..ff7815a00b7 100644 --- a/src/core/qgssqlstatement.cpp +++ b/src/core/qgssqlstatement.cpp @@ -237,7 +237,7 @@ bool QgsSQLStatement::doBasicValidationChecks( QString& errorMsgOut ) const { if ( !errorMsgOut.isEmpty() ) errorMsgOut += " "; - errorMsgOut += QString( tr( "Table %1 is referenced by column %2, but not selected in FROM / JOIN." ) ).arg( pair.first ).arg( pair.second ); + errorMsgOut += QString( tr( "Table %1 is referenced by column %2, but not selected in FROM / JOIN." ) ).arg( pair.first, pair.second ); } } diff --git a/src/core/qgsstringutils.cpp b/src/core/qgsstringutils.cpp index 9198fbfa854..d407d2e9156 100644 --- a/src/core/qgsstringutils.cpp +++ b/src/core/qgsstringutils.cpp @@ -362,7 +362,7 @@ QString QgsStringUtils::insertLinks( const QString& string, bool *foundLinks ) { protoUrl.prepend( "http://" ); } - QString anchor = QString( "%2" ).arg( Qt::escape( protoUrl ) ).arg( Qt::escape( url ) ); + QString anchor = QString( "%2" ).arg( Qt::escape( protoUrl ), Qt::escape( url ) ); converted.replace( urlRegEx.pos( 1 ), url.length(), anchor ); offset = urlRegEx.pos( 1 ) + anchor.length(); } @@ -371,7 +371,7 @@ QString QgsStringUtils::insertLinks( const QString& string, bool *foundLinks ) { found = true; QString email = emailRegEx.cap( 1 ); - QString anchor = QString( "%1" ).arg( Qt::escape( email ) ).arg( Qt::escape( email ) ); + QString anchor = QString( "%1" ).arg( Qt::escape( email ), Qt::escape( email ) ); converted.replace( emailRegEx.pos( 1 ), email.length(), anchor ); offset = emailRegEx.pos( 1 ) + anchor.length(); } diff --git a/src/core/qgsvectorfilewriter.cpp b/src/core/qgsvectorfilewriter.cpp index 16fd52da629..4b9bd3315a0 100644 --- a/src/core/qgsvectorfilewriter.cpp +++ b/src/core/qgsvectorfilewriter.cpp @@ -281,7 +281,7 @@ void QgsVectorFileWriter::init( QString vectorFileName, { if ( fileEncoding.compare( metadata.compulsoryEncoding, Qt::CaseInsensitive ) != 0 ) { - QgsDebugMsg( QString( "forced %1 encoding for %2" ).arg( metadata.compulsoryEncoding ).arg( driverName ) ); + QgsDebugMsg( QString( "forced %1 encoding for %2" ).arg( metadata.compulsoryEncoding, driverName ) ); fileEncoding = metadata.compulsoryEncoding; } diff --git a/src/gui/qgsattributeform.cpp b/src/gui/qgsattributeform.cpp index 7fba707d7c7..59ff500f835 100644 --- a/src/gui/qgsattributeform.cpp +++ b/src/gui/qgsattributeform.cpp @@ -793,9 +793,9 @@ void QgsAttributeForm::displayInvalidConstraintMessage( const QStringList& f, int size = f.size() > max ? max : f.size(); QString descriptions; for ( int i = 0; i < size; i++ ) - descriptions += QString( "
  • %1: %2
  • " ).arg( f[i] ).arg( d[i] ); + descriptions += QString( "
  • %1: %2
  • " ).arg( f[i], d[i] ); - QString msg = QString( "%1
      %2
    " ).arg( tr( "Invalid fields" ) ).arg( descriptions ) ; + QString msg = QString( "%1
      %2
    " ).arg( tr( "Invalid fields" ), descriptions ) ; mInvalidConstraintMessage->setText( msg ); mTopMessageWidget->show(); diff --git a/src/gui/qgscolorbutton.cpp b/src/gui/qgscolorbutton.cpp index 9693d785c8c..0ff34b7b7b1 100644 --- a/src/gui/qgscolorbutton.cpp +++ b/src/gui/qgscolorbutton.cpp @@ -171,8 +171,8 @@ bool QgsColorButton::event( QEvent *e ) int saturation = this->color().saturation(); QString info = QString( "HEX: %1 \n" "RGB: %2 \n" - "HSV: %3,%4,%5" ).arg( name ) - .arg( QgsSymbolLayerUtils::encodeColor( this->color() ) ) + "HSV: %3,%4,%5" ).arg( name, + QgsSymbolLayerUtils::encodeColor( this->color() ) ) .arg( hue ).arg( saturation ).arg( value ); setToolTip( info ); } diff --git a/src/providers/arcgisrest/qgsafsdataitems.cpp b/src/providers/arcgisrest/qgsafsdataitems.cpp index 504914478f8..3d7d767133f 100644 --- a/src/providers/arcgisrest/qgsafsdataitems.cpp +++ b/src/providers/arcgisrest/qgsafsdataitems.cpp @@ -150,7 +150,7 @@ void QgsAfsConnectionItem::deleteConnection() QgsAfsLayerItem::QgsAfsLayerItem( QgsDataItem* parent, const QString &name, const QString &url, const QString &title, const QString& authid ) : QgsLayerItem( parent, title, parent->path() + "/" + name, QString(), QgsLayerItem::Vector, "arcgisfeatureserver" ) { - mUri = QString( "crs='%1' url='%2'" ).arg( authid ).arg( url ); + mUri = QString( "crs='%1' url='%2'" ).arg( authid, url ); setState( Populated ); mIconName = "mIconConnect.png"; } diff --git a/src/providers/arcgisrest/qgsafsprovider.cpp b/src/providers/arcgisrest/qgsafsprovider.cpp index f5571e7752d..a7f3f652c76 100644 --- a/src/providers/arcgisrest/qgsafsprovider.cpp +++ b/src/providers/arcgisrest/qgsafsprovider.cpp @@ -118,7 +118,7 @@ QgsAfsProvider::QgsAfsProvider( const QString& uri ) QVariantMap objectIdData = QgsArcGisRestUtils::getObjectIds( mDataSource.param( "url" ), errorTitle, errorMessage ); if ( objectIdData.isEmpty() ) { - appendError( QgsErrorMessage( tr( "getObjectIds failed: %1 - %2" ).arg( errorTitle ).arg( errorMessage ), "AFSProvider" ) ); + appendError( QgsErrorMessage( tr( "getObjectIds failed: %1 - %2" ).arg( errorTitle, errorMessage ), "AFSProvider" ) ); return; } if ( !objectIdData["objectIdFieldName"].isValid() || !objectIdData["objectIds"].isValid() ) diff --git a/src/providers/arcgisrest/qgsafssourceselect.cpp b/src/providers/arcgisrest/qgsafssourceselect.cpp index 7e9fb1d287e..49cbde18a82 100644 --- a/src/providers/arcgisrest/qgsafssourceselect.cpp +++ b/src/providers/arcgisrest/qgsafssourceselect.cpp @@ -41,7 +41,7 @@ bool QgsAfsSourceSelect::connectToService( const QgsOwsConnection &connection ) QVariantMap serviceInfoMap = QgsArcGisRestUtils::getServiceInfo( connection.uri().param( "url" ), errorTitle, errorMessage ); if ( serviceInfoMap.isEmpty() ) { - QMessageBox::warning( this, tr( "Error" ), tr( "Failed to retrieve service capabilities:\n%1: %2" ).arg( errorTitle ).arg( errorMessage ) ); + QMessageBox::warning( this, tr( "Error" ), tr( "Failed to retrieve service capabilities:\n%1: %2" ).arg( errorTitle, errorMessage ) ); return false; } @@ -58,7 +58,7 @@ bool QgsAfsSourceSelect::connectToService( const QgsOwsConnection &connection ) QVariantMap layerData = QgsArcGisRestUtils::getLayerInfo( connection.uri().param( "url" ) + "/" + layerInfoMap["id"].toString(), errorTitle, errorMessage ); if ( layerData.isEmpty() ) { - layerErrors.append( tr( "Layer %1: %2 - %3" ).arg( layerInfoMap["id"].toString() ).arg( errorTitle ).arg( errorMessage ) ); + layerErrors.append( tr( "Layer %1: %2 - %3" ).arg( layerInfoMap["id"].toString(), errorTitle, errorMessage ) ); continue; } // insert the typenames, titles and abstracts into the tree view diff --git a/src/providers/arcgisrest/qgsamsdataitems.cpp b/src/providers/arcgisrest/qgsamsdataitems.cpp index 71b359f0f42..4e4c75d1592 100644 --- a/src/providers/arcgisrest/qgsamsdataitems.cpp +++ b/src/providers/arcgisrest/qgsamsdataitems.cpp @@ -165,7 +165,7 @@ void QgsAmsConnectionItem::deleteConnection() QgsAmsLayerItem::QgsAmsLayerItem( QgsDataItem* parent, const QString& name, const QString &url, const QString& id, const QString& title, const QString& authid, const QString& format ) : QgsLayerItem( parent, title, parent->path() + "/" + name, QString(), QgsLayerItem::Raster, "arcgismapserver" ) { - mUri = QString( "crs='%1' format='%2' layer='%3' url='%4'" ).arg( authid ).arg( format ).arg( id ).arg( url ); + mUri = QString( "crs='%1' format='%2' layer='%3' url='%4'" ).arg( authid, format, id, url ); setState( Populated ); mIconName = "mIconAms.svg"; } diff --git a/src/providers/arcgisrest/qgsamsprovider.cpp b/src/providers/arcgisrest/qgsamsprovider.cpp index 46164774b35..3f4706efbfa 100644 --- a/src/providers/arcgisrest/qgsamsprovider.cpp +++ b/src/providers/arcgisrest/qgsamsprovider.cpp @@ -222,11 +222,11 @@ static inline QString dumpVariantMap( const QVariantMap& variantMap, const QStri QVariantMap childMap = variantMap[key].toMap(); if ( childMap.isEmpty() ) { - result += QString( "%1%2" ).arg( key ).arg( variantMap[key].toString() ); + result += QString( "%1%2" ).arg( key, variantMap[key].toString() ); } else { - result += QString( "%1%2" ).arg( key ).arg( dumpVariantMap( childMap ) ); + result += QString( "%1%2" ).arg( key, dumpVariantMap( childMap ) ); } } result += ""; @@ -400,7 +400,7 @@ QgsRasterIdentifyResult QgsAmsProvider::identify( const QgsPoint & thePoint, Qgs QString valueStr; foreach ( const QString& attribute, attributesMap.keys() ) { - valueStr += QString( "%1 = %2\n" ).arg( attribute ).arg( attributesMap[attribute].toString() ); + valueStr += QString( "%1 = %2\n" ).arg( attribute, attributesMap[attribute].toString() ); } entries.insert( entries.size(), valueStr ); } diff --git a/src/providers/arcgisrest/qgsamssourceselect.cpp b/src/providers/arcgisrest/qgsamssourceselect.cpp index 0e2b6d96ac5..bdaa7c75169 100644 --- a/src/providers/arcgisrest/qgsamssourceselect.cpp +++ b/src/providers/arcgisrest/qgsamssourceselect.cpp @@ -40,7 +40,7 @@ bool QgsAmsSourceSelect::connectToService( const QgsOwsConnection &connection ) QVariantMap serviceInfoMap = QgsArcGisRestUtils::getServiceInfo( connection.uri().param( "url" ), errorTitle, errorMessage ); if ( serviceInfoMap.isEmpty() ) { - QMessageBox::warning( this, tr( "Error" ), tr( "Failed to retrieve service capabilities:\n%1: %2" ).arg( errorTitle ).arg( errorMessage ) ); + QMessageBox::warning( this, tr( "Error" ), tr( "Failed to retrieve service capabilities:\n%1: %2" ).arg( errorTitle, errorMessage ) ); return false; } @@ -59,7 +59,7 @@ bool QgsAmsSourceSelect::connectToService( const QgsOwsConnection &connection ) QVariantMap layerData = QgsArcGisRestUtils::getLayerInfo( connection.uri().param( "url" ) + "/" + layerInfoMap["id"].toString(), errorTitle, errorMessage ); if ( layerData.isEmpty() ) { - layerErrors.append( QString( "Layer %1: %2 - %3" ).arg( layerInfoMap["id"].toString() ).arg( errorTitle ).arg( errorMessage ) ); + layerErrors.append( QString( "Layer %1: %2 - %3" ).arg( layerInfoMap["id"].toString(), errorTitle, errorMessage ) ); continue; } // insert the typenames, titles and abstracts into the tree view diff --git a/src/providers/db2/qgsdb2expressioncompiler.cpp b/src/providers/db2/qgsdb2expressioncompiler.cpp index aee33698a56..baa057b1ade 100644 --- a/src/providers/db2/qgsdb2expressioncompiler.cpp +++ b/src/providers/db2/qgsdb2expressioncompiler.cpp @@ -118,7 +118,7 @@ QgsSqlExpressionCompiler::Result QgsDb2ExpressionCompiler::compileNode( const Qg } result = "NOT " + result; - QgsDebugMsg( QString( "NOT; result: %1; right: %2" ).arg( resultType( rr ) ).arg( result ) ); + QgsDebugMsg( QString( "NOT; result: %1; right: %2" ).arg( resultType( rr ), result ) ); return rr; case QgsExpression::uoMinus: diff --git a/src/providers/db2/qgsdb2provider.cpp b/src/providers/db2/qgsdb2provider.cpp index 57c71589575..ea6af992033 100644 --- a/src/providers/db2/qgsdb2provider.cpp +++ b/src/providers/db2/qgsdb2provider.cpp @@ -1529,7 +1529,7 @@ QgsVectorLayerImport::ImportError QgsDb2Provider::createEmptyLayer( const QStrin for ( int i = 0; i < list.size(); ++i ) { QgsDebugMsg( QString( "i: %1; value: %2; type: %3" ) - .arg( i ).arg( list.at( i ).toString().toLatin1().data() ).arg( list.at( i ).typeName() ) ); + .arg( i ).arg( list.at( i ).toString().toLatin1().data(), list.at( i ).typeName() ) ); } } diff --git a/src/providers/grass/qgsgrass.cpp b/src/providers/grass/qgsgrass.cpp index eec0a98c53f..3909f5d4674 100644 --- a/src/providers/grass/qgsgrass.cpp +++ b/src/providers/grass/qgsgrass.cpp @@ -1579,7 +1579,7 @@ QStringList QgsGrass::grassObjects( const QgsGrassObject& mapsetObject, QgsGrass catch ( QgsGrass::Exception &e ) { // TODO: notify somehow user - QgsDebugMsg( QString( "Cannot run %1: %2" ).arg( cmd ).arg( e.what() ) ); + QgsDebugMsg( QString( "Cannot run %1: %2" ).arg( cmd, e.what() ) ); } } #endif diff --git a/src/providers/wfs/qgswfsprovider.cpp b/src/providers/wfs/qgswfsprovider.cpp index 78cdd69c5d5..3516c3e6630 100644 --- a/src/providers/wfs/qgswfsprovider.cpp +++ b/src/providers/wfs/qgswfsprovider.cpp @@ -422,7 +422,7 @@ bool QgsWFSProvider::processSQL( const QString& sqlString, QString& errorMsg, QS concatenatedTypenames ) ) { errorMsg = tr( "DescribeFeatureType failed for url %1: %2" ). - arg( dataSourceUri() ).arg( describeFeatureType.errorMessage() ); + arg( dataSourceUri(), describeFeatureType.errorMessage() ); return false; } @@ -434,7 +434,7 @@ bool QgsWFSProvider::processSQL( const QString& sqlString, QString& errorMsg, QS { QgsDebugMsg( response ); errorMsg = tr( "DescribeFeatureType failed for url %1: %2" ). - arg( dataSourceUri() ).arg( errorMsg ); + arg( dataSourceUri(), errorMsg ); return false; } @@ -451,7 +451,7 @@ bool QgsWFSProvider::processSQL( const QString& sqlString, QString& errorMsg, QS geometryAttribute, fields, geomType, errorMsg ) ) { errorMsg = tr( "Analysis of DescribeFeatureType response failed for url %1, typeName %2: %3" ). - arg( dataSourceUri() ).arg( typeName ).arg( errorMsg ); + arg( dataSourceUri(), typeName, errorMsg ); return false; } @@ -1109,7 +1109,7 @@ bool QgsWFSProvider::describeFeatureType( QString& geometryAttribute, QgsFields& mShared->mURI.typeName() ) ) { QgsMessageLog::logMessage( tr( "DescribeFeatureType failed for url %1: %2" ). - arg( dataSourceUri() ).arg( describeFeatureType.errorMessage() ), tr( "WFS" ) ); + arg( dataSourceUri(), describeFeatureType.errorMessage() ), tr( "WFS" ) ); return false; } @@ -1121,7 +1121,7 @@ bool QgsWFSProvider::describeFeatureType( QString& geometryAttribute, QgsFields& { QgsDebugMsg( response ); QgsMessageLog::logMessage( tr( "DescribeFeatureType failed for url %1: %2" ). - arg( dataSourceUri() ).arg( errorMsg ), tr( "WFS" ) ); + arg( dataSourceUri(), errorMsg ), tr( "WFS" ) ); return false; } @@ -1130,7 +1130,7 @@ bool QgsWFSProvider::describeFeatureType( QString& geometryAttribute, QgsFields& geometryAttribute, fields, geomType, errorMsg ) ) { QgsMessageLog::logMessage( tr( "Analysis of DescribeFeatureType response failed for url %1: %2" ). - arg( dataSourceUri() ).arg( errorMsg ), tr( "WFS" ) ); + arg( dataSourceUri(), errorMsg ), tr( "WFS" ) ); return false; } @@ -1449,7 +1449,7 @@ bool QgsWFSProvider::getCapabilities() if ( !getCapabilities.requestCapabilities( synchronous, forceRefresh ) ) { QgsMessageLog::logMessage( tr( "GetCapabilities failed for url %1: %2" ). - arg( dataSourceUri() ).arg( getCapabilities.errorMessage() ), tr( "WFS" ) ); + arg( dataSourceUri(), getCapabilities.errorMessage() ), tr( "WFS" ) ); return false; } @@ -1524,7 +1524,7 @@ bool QgsWFSProvider::getCapabilities() if ( !foundLayer ) { QgsMessageLog::logMessage( tr( "Could not find typename %1 in capabilities for url %2" ). - arg( thisLayerName ).arg( dataSourceUri() ), tr( "WFS" ) ); + arg( thisLayerName, dataSourceUri() ), tr( "WFS" ) ); } return foundLayer; diff --git a/src/providers/wfs/qgswfsshareddata.cpp b/src/providers/wfs/qgswfsshareddata.cpp index adb20bb490b..a097e01cc81 100644 --- a/src/providers/wfs/qgswfsshareddata.cpp +++ b/src/providers/wfs/qgswfsshareddata.cpp @@ -382,7 +382,7 @@ bool QgsWFSSharedData::createCache() if ( !ogrWaySuccessful ) { mCacheTablename = "features"; - sql = QString( "CREATE TABLE %1 (%2 INTEGER PRIMARY KEY" ).arg( mCacheTablename ).arg( fidName ); + sql = QString( "CREATE TABLE %1 (%2 INTEGER PRIMARY KEY" ).arg( mCacheTablename, fidName ); Q_FOREACH ( QgsField field, cacheFields ) { QString type( "VARCHAR" ); @@ -421,7 +421,7 @@ bool QgsWFSSharedData::createCache() // We need an index on the gmlid, since we will check for duplicates, particularly // useful in the case we do overlapping BBOX requests - sql = QString( "CREATE INDEX idx_%2 ON %1(%2)" ).arg( mCacheTablename ).arg( QgsWFSConstants::FIELD_GMLID ); + sql = QString( "CREATE INDEX idx_%2 ON %1(%2)" ).arg( mCacheTablename, QgsWFSConstants::FIELD_GMLID ); rc = sqlite3_exec( db, sql.toUtf8(), nullptr, nullptr, nullptr ); if ( rc != SQLITE_OK ) { @@ -431,7 +431,7 @@ bool QgsWFSSharedData::createCache() if ( mDistinctSelect ) { - sql = QString( "CREATE INDEX idx_%2 ON %1(%2)" ).arg( mCacheTablename ).arg( QgsWFSConstants::FIELD_MD5 ); + sql = QString( "CREATE INDEX idx_%2 ON %1(%2)" ).arg( mCacheTablename, QgsWFSConstants::FIELD_MD5 ); rc = sqlite3_exec( db, sql.toUtf8(), nullptr, nullptr, nullptr ); if ( rc != SQLITE_OK ) { @@ -985,7 +985,7 @@ void QgsWFSSharedData::endOfDownload( bool success, int featureCount, if ( !success && !interrupted ) { - QString errorMsgOut( tr( "Download of features for layer %1 failed or partially failed: %2. You may attempt reloading the layer with F5" ).arg( mURI.typeName() ).arg( errorMsg ) ); + QString errorMsgOut( tr( "Download of features for layer %1 failed or partially failed: %2. You may attempt reloading the layer with F5" ).arg( mURI.typeName(), errorMsg ) ); pushError( errorMsgOut ); } diff --git a/src/providers/wfs/qgswfsutils.cpp b/src/providers/wfs/qgswfsutils.cpp index dbb2b897849..5a9a6d2f4e3 100644 --- a/src/providers/wfs/qgswfsutils.cpp +++ b/src/providers/wfs/qgswfsutils.cpp @@ -61,7 +61,7 @@ QString QgsWFSUtils::getCacheDirectory( bool createIfNotExisting ) QMutexLocker locker( &gmMutex ); if ( !QDir( baseDirectory ).exists( processPath ) ) { - QgsDebugMsg( QString( "Creating our cache dir %1/%2" ).arg( baseDirectory ).arg( processPath ) ); + QgsDebugMsg( QString( "Creating our cache dir %1/%2" ).arg( baseDirectory, processPath ) ); QDir( baseDirectory ).mkpath( processPath ); } if ( gmCounter == 0 && gmKeepAliveWorks ) diff --git a/src/server/qgsconfigcache.cpp b/src/server/qgsconfigcache.cpp index 16e5abfedad..54978e5b894 100644 --- a/src/server/qgsconfigcache.cpp +++ b/src/server/qgsconfigcache.cpp @@ -75,8 +75,7 @@ QgsServerProjectParser* QgsConfigCache::serverConfiguration( const QString& file } QgsMessageLog::logMessage( QString( "QGIS server version %1, project version %2" ) - .arg( thisVersion.text() ) - .arg( fileVersion.text() ), + .arg( thisVersion.text(), fileVersion.text() ), "Server", QgsMessageLog::INFO ); return new QgsServerProjectParser( doc, filePath ); diff --git a/tests/src/core/testqgscomposergroup.cpp b/tests/src/core/testqgscomposergroup.cpp index 3b2468ed20a..2faad8125de 100644 --- a/tests/src/core/testqgscomposergroup.cpp +++ b/tests/src/core/testqgscomposergroup.cpp @@ -69,8 +69,8 @@ void TestQgsComposerGroup::dumpUndoStack( const QUndoStack& us, QString prefix ) for ( int i = 0; i < us.count(); ++i ) { QgsDebugMsg( QString( "%4US %1: %2%3" ) - .arg( i ). arg( i >= us.index() ? "-" : "" ) - .arg( us.text( i ) ) .arg( prefix ) ); + .arg( i ). arg( i >= us.index() ? "-" : "", + us.text( i ), prefix ) ); } }