Skip to content

Commit

Permalink
default value does not need to be explicitly set
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 2, 2016
1 parent f7d5912 commit 54dcc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrastershader.cpp
Expand Up @@ -170,7 +170,7 @@ void QgsRasterShader::readXml( const QDomElement& elem )
if ( !colorRampShaderElem.isNull() )
{
QgsColorRampShader* colorRampShader = new QgsColorRampShader();
colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName", QString() ) );
colorRampShader->setColorRampName( colorRampShaderElem.attribute( "colorRampName" ) );
colorRampShader->setColorRampType( colorRampShaderElem.attribute( QStringLiteral( "colorRampType" ), QStringLiteral( "INTERPOLATED" ) ) );
colorRampShader->setClip( colorRampShaderElem.attribute( QStringLiteral( "clip" ), QStringLiteral( "0" ) ) == QLatin1String( "1" ) );

Expand Down

0 comments on commit 54dcc34

Please sign in to comment.