Skip to content

Commit

Permalink
fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 20, 2020
1 parent cc98fe3 commit a0a753e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -586,7 +586,11 @@ QStringList QgsProcessingParameters::parameterAsEnumStrings( const QgsProcessing
// check that values are valid enum values. The resulting set will be empty
// if all values are present in the enumDef->options(), otherwise it will contain
// values which are invalid
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QSet<QString> subtraction = enumValues.toSet().subtract( enumDef->options().toSet() );
#else
QSet<QString> subtraction = enumValues.toSet( enumValues.begin(), enumValues.end() ).subtract( enumDef->options().toSet( enumDef->options().begin(), enumDef->options().end() ) );
#endif

if ( enumValues.isEmpty() || !subtraction.isEmpty() )
{
Expand Down
Binary file modified tests/testdata/points_gpkg.gpkg
Binary file not shown.

0 comments on commit a0a753e

Please sign in to comment.