Skip to content

Commit 6ea9ff0

Browse files
committedFeb 12, 2019
better a static list to avoid set at every call
1 parent 63fae80 commit 6ea9ff0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/core/raster/qgsmultibandcolorrenderer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,7 @@ void QgsMultiBandColorRenderer::toSld( QDomDocument &doc, QDomElement &element,
507507
}
508508

509509
// for each mapped band
510-
QStringList tags;
511-
tags << QStringLiteral( "sld:RedChannel" ) << QStringLiteral( "sld:GreenChannel" ) << QStringLiteral( "sld:BlueChannel" );
510+
static QStringList tags { QStringLiteral( "sld:RedChannel" ), QStringLiteral( "sld:GreenChannel" ), QStringLiteral( "sld:BlueChannel" ) };
512511

513512
QList<QgsContrastEnhancement *> contrastEnhancements;
514513
contrastEnhancements.append( mRedContrastEnhancement );

0 commit comments

Comments
 (0)
Please sign in to comment.