Skip to content
Permalink
Browse files

fix deprecation warning

  • Loading branch information
alexbruy committed Nov 20, 2020
1 parent cc98fe3 commit a0a753e5f9104f4762453c54abd5c8493f124975
@@ -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() )
{
BIN +0 Bytes (100%) tests/testdata/points_gpkg.gpkg
Binary file not shown.

0 comments on commit a0a753e

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