Skip to content
Permalink
Browse files

better a static list to avoid set at every call

  • Loading branch information
luipir committed Feb 2, 2019
1 parent 3b1127e commit a71d937b2081b0bd0741623bb42b0279dc0c9a59
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/raster/qgsmultibandcolorrenderer.cpp
@@ -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 );

0 comments on commit a71d937

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