Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cosmetic coverity fixes
  • Loading branch information
nyalldawson committed Aug 16, 2015
1 parent 42d5b9b commit 6703fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgscolorrampcombobox.cpp
Expand Up @@ -154,7 +154,7 @@ void QgsColorRampComboBox::editSourceRamp()
{
QgsVectorRandomColorRampV2* randRamp = static_cast<QgsVectorRandomColorRampV2*>( newRamp.data() );
QgsVectorRandomColorRampV2Dialog dlg( randRamp, this );
if ( dlg.exec() && randRamp )
if ( dlg.exec() )
{
setSourceColorRamp( randRamp );
emit sourceRampEdited();
Expand All @@ -164,7 +164,7 @@ void QgsColorRampComboBox::editSourceRamp()
{
QgsVectorColorBrewerColorRampV2* brewerRamp = static_cast<QgsVectorColorBrewerColorRampV2*>( newRamp.data() );
QgsVectorColorBrewerColorRampV2Dialog dlg( brewerRamp, this );
if ( dlg.exec() && brewerRamp )
if ( dlg.exec() )
{
setSourceColorRamp( brewerRamp );
emit sourceRampEdited();
Expand Down

0 comments on commit 6703fd3

Please sign in to comment.