Skip to content
Permalink
Browse files

fix deprecation

  • Loading branch information
alexbruy committed Nov 20, 2020
1 parent cf58866 commit d952eb4bc73339ca8c108401b0122eeb2e1bdd8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/processing/qgsprocessingparameters.cpp
@@ -589,7 +589,7 @@ QStringList QgsProcessingParameters::parameterAsEnumStrings( const QgsProcessing
#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() ) );
QSet<QString> subtraction = QSet<QString>( enumValues.begin(), enumValues.end() ).subtract( QSet<QString>( enumDef->options().begin(), enumDef->options().end() ) );
#endif

if ( enumValues.isEmpty() || !subtraction.isEmpty() )

0 comments on commit d952eb4

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