Skip to content

Commit

Permalink
style(ColorWidgets): Make cppcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Aug 21, 2024
1 parent a24779f commit 1b8c949
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgscolorwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ QgsColorWidget::ComponentUnit QgsColorWidget::componentUnit( ColorComponent comp
case QgsColorWidget::Blue:
return ComponentUnit::Raw;
}

return ComponentUnit::Raw; // just to silence false positive cppcheck
}

int QgsColorWidget::componentValue( const QgsColorWidget::ColorComponent component ) const
Expand Down

0 comments on commit 1b8c949

Please sign in to comment.