Skip to content
Permalink
Browse files

removed unuseful parentheses and removed default

  • Loading branch information
luipir committed Feb 1, 2019
1 parent 39c6548 commit d285e47008f1f2d817589d39526fc9e1bdb7a4a1
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/core/raster/qgsrasterlayer.cpp
@@ -1325,17 +1325,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 d285e47

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