Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed unuseful parentheses and removed default
  • Loading branch information
luipir committed Feb 12, 2019
1 parent 39c6548 commit d285e47
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit d285e47

Please sign in to comment.