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 1, 2019
1 parent 0aaa191 commit 4b3674a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 4b3674a

Please sign in to comment.