Skip to content
Permalink
Browse files

Fix build warning

  • Loading branch information
nyalldawson committed Sep 14, 2020
1 parent 518e48c commit 9e84cf0bf43a23284da3fc9c7e1d6bd77ed40a0f
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/core/processing/qgsprocessingparameters.cpp
@@ -3135,30 +3135,26 @@ QString QgsProcessingParameterGeometry::asPythonString( const QgsProcessing::Pyt

if ( !mGeomTypes.empty() )
{
auto geomTypeToString = []( QgsWkbTypes::GeometryType t )
auto geomTypeToString = []( QgsWkbTypes::GeometryType t ) -> QString
{
switch ( t )
{
case QgsWkbTypes::PointGeometry:
return QStringLiteral( "PointGeometry" );
break;

case QgsWkbTypes::LineGeometry:
return QStringLiteral( "LineGeometry" );
break;

case QgsWkbTypes::PolygonGeometry:
return QStringLiteral( "PolygonGeometry" );
break;

case QgsWkbTypes::UnknownGeometry:
return QStringLiteral( "UnknownGeometry" );
break;

case QgsWkbTypes::NullGeometry:
return QStringLiteral( "NullGeometry" );
break;
}
return QString();
};

QStringList options;

0 comments on commit 9e84cf0

Please sign in to comment.
You can’t perform that action at this time.