Skip to content
Permalink
Browse files

Don't use m prefix for local variable

  • Loading branch information
nyalldawson committed Jan 2, 2020
1 parent cfa5c31 commit be461521971d13616e1757f94657d444dd8c4d45
Showing with 3 additions and 7 deletions.
  1. +3 −7 src/analysis/processing/qgsalgorithmjoinbylocation.cpp
@@ -140,11 +140,7 @@ QVariantMap QgsJoinByLocationAlgorithm::processAlgorithm( const QVariantMap &par
if ( joinedFieldNames.empty() )
{
joinFields = joinSource->fields();
mFields2Indices.reserve( joinFields.count() );
for ( int i = 0; i < joinFields.count(); ++i )
{
mFields2Indices << i;
}
mFields2Indices = joinFields.allAttributesList();
}
else
{
@@ -168,10 +164,10 @@ QVariantMap QgsJoinByLocationAlgorithm::processAlgorithm( const QVariantMap &par
}
}

const QgsFields mOutFields = QgsProcessingUtils::combineFields( mBaseSource->fields(), joinFields );
const QgsFields outputFields = QgsProcessingUtils::combineFields( mBaseSource->fields(), joinFields );

QString joinedSinkId;
mJoinedFeatures.reset( parameterAsSink( parameters, QStringLiteral( "OUTPUT" ), context, joinedSinkId, mOutFields,
mJoinedFeatures.reset( parameterAsSink( parameters, QStringLiteral( "OUTPUT" ), context, joinedSinkId, outputFields,
mBaseSource->wkbType(), mBaseSource->sourceCrs(), QgsFeatureSink::RegeneratePrimaryKey ) );

if ( parameters.value( QStringLiteral( "OUTPUT" ) ).isValid() && !mJoinedFeatures )

0 comments on commit be46152

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