Skip to content

Commit

Permalink
better a static list to avoid set at every call
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Feb 12, 2019
1 parent 63fae80 commit 6ea9ff0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/raster/qgsmultibandcolorrenderer.cpp
Expand Up @@ -507,8 +507,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 6ea9ff0

Please sign in to comment.