Skip to content

Commit

Permalink
Fix enumeration value 'NoOrientation' not handled in switch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Nov 24, 2023
1 parent 6b6ed33 commit 972dbc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/providers/arcgis/qgsarcgisrestutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,8 @@ QVariantList QgsArcGisRestUtils::polygonToJsonRings( const QgsPolygon *polygon )
rings.push_back( lineStringToJsonPath( reversed.get() ) );
break;
}
case Qgis::AngularDirection::NoOrientation:
break;
}
}

Expand All @@ -1431,6 +1433,8 @@ QVariantList QgsArcGisRestUtils::polygonToJsonRings( const QgsPolygon *polygon )
rings.push_back( lineStringToJsonPath( reversed.get() ) );
break;
}
case Qgis::AngularDirection::NoOrientation:
break;
}
}
return rings;
Expand All @@ -1457,6 +1461,8 @@ QVariantList QgsArcGisRestUtils::curvePolygonToJsonRings( const QgsCurvePolygon
rings.push_back( curveToJsonCurve( reversed.get(), true ) );
break;
}
case Qgis::AngularDirection::NoOrientation:
break;
}
}

Expand All @@ -1476,6 +1482,8 @@ QVariantList QgsArcGisRestUtils::curvePolygonToJsonRings( const QgsCurvePolygon
rings.push_back( curveToJsonCurve( reversed.get(), true ) );
break;
}
case Qgis::AngularDirection::NoOrientation:
break;
}
}
return rings;
Expand Down
6 changes: 6 additions & 0 deletions src/core/qgscolorrampimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ static QColor _interpolateHsv( const QColor &c1, const QColor &c2, const double
hue -= 1;
break;
}
case Qgis::AngularDirection::NoOrientation:
break;
}
}

Expand Down Expand Up @@ -151,6 +153,8 @@ static QColor _interpolateHsl( const QColor &c1, const QColor &c2, const double
hue -= 1;
break;
}
case Qgis::AngularDirection::NoOrientation:
break;
}
}

Expand Down Expand Up @@ -473,6 +477,8 @@ QVariantMap QgsGradientColorRamp::properties() const
case Qgis::AngularDirection::CounterClockwise:
map[QStringLiteral( "direction" ) ] = QStringLiteral( "ccw" );
break;
case Qgis::AngularDirection::NoOrientation:
break;
}

map[QStringLiteral( "rampType" )] = type();
Expand Down

0 comments on commit 972dbc2

Please sign in to comment.