Skip to content
Permalink
Browse files

removed unuseful parentheses and removed default

  • Loading branch information
luipir committed Feb 1, 2019
1 parent 0aaa191 commit 4b3674ae3f7017adf5d62bf55cea1729004f84db
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/core/raster/qgsrasterlayer.cpp
@@ -1389,17 +1389,15 @@ bool QgsRasterLayer::writeSld( QDomNode &node, QDomDocument &doc, QString &error
QString property;
switch ( hueSaturationFilter()->grayscaleMode() )
{
case ( QgsHueSaturationFilter::GrayscaleLightness ):
case QgsHueSaturationFilter::GrayscaleLightness:
property = QStringLiteral( "lightness" );
break;
case ( QgsHueSaturationFilter::GrayscaleLuminosity ):
case QgsHueSaturationFilter::GrayscaleLuminosity:
property = QStringLiteral( "luminosity" );
break;
case ( QgsHueSaturationFilter::GrayscaleAverage ):
case QgsHueSaturationFilter::GrayscaleAverage:
property = QStringLiteral( "average" );
break;
default:
break;
}
if ( !property.isEmpty() )
vendorOptionWriter( QStringLiteral( "grayScale" ), property );

0 comments on commit 4b3674a

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