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 63fae80 commit 6ea9ff07134bc37461fcd22c4628dd96386c6cc7
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/raster/qgsmultibandcolorrenderer.cpp
@@ -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 );

0 comments on commit 6ea9ff0

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