Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix const
  • Loading branch information
vcloarec authored and github-actions[bot] committed Apr 26, 2023
1 parent 71451d9 commit 0df5b07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/mesh/qgsmeshlayer.cpp
Expand Up @@ -1390,7 +1390,7 @@ QgsMeshRendererSettings QgsMeshLayer::accordSymbologyWithGroupName( const QgsMes
int activeScalar = consistentSettings.activeScalarDatasetGroup();
int activeVector = consistentSettings.activeScalarDatasetGroup();

for ( auto it = nameToIndex.constBegin(); it != nameToIndex.cend(); ++it )
for ( auto it = nameToIndex.constBegin(); it != nameToIndex.constEnd(); ++it )
{
int index = it.value();
const QString name = it.key() ;
Expand Down Expand Up @@ -1699,7 +1699,7 @@ bool QgsMeshLayer::readSymbology( const QDomNode &node, QString &errorMessage,
QDomElement nameToIndexElem = elem.firstChildElement( "name-to-global-index" );
while ( !nameToIndexElem.isNull() )
{
QString name = nameToIndexElem.attribute( QStringLiteral( "name" ) );
const QString name = nameToIndexElem.attribute( QStringLiteral( "name" ) );
int globalIndex = nameToIndexElem.attribute( QStringLiteral( "global-index" ) ).toInt();
groupNameToGlobalIndex.insert( name, globalIndex );
nameToIndexElem = nameToIndexElem.nextSiblingElement( QStringLiteral( "name-to-global-index" ) );
Expand Down

0 comments on commit 0df5b07

Please sign in to comment.