Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better a static list to avoid set at every call
  • Loading branch information
luipir committed Feb 2, 2019
1 parent 3b1127e commit a71d937
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/raster/qgsmultibandcolorrenderer.cpp
Expand Up @@ -504,8 +504,7 @@ void QgsMultiBandColorRenderer::toSld( QDomDocument &doc, QDomElement &element,
}

// for each mapped band
QStringList tags;
tags << QStringLiteral( "sld:RedChannel" ) << QStringLiteral( "sld:GreenChannel" ) << QStringLiteral( "sld:BlueChannel" );
static QStringList tags { QStringLiteral( "sld:RedChannel" ), QStringLiteral( "sld:GreenChannel" ), QStringLiteral( "sld:BlueChannel" ) };

QList<QgsContrastEnhancement *> contrastEnhancements;
contrastEnhancements.append( mRedContrastEnhancement );
Expand Down

0 comments on commit a71d937

Please sign in to comment.