mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
better a static list to avoid set at every call
This commit is contained in:
parent
3b1127ee70
commit
a71d937b20
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user