Skip to content

Commit

Permalink
fix typos, add Q_DECL_DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 7, 2023
1 parent 2111d45 commit 89ddbc3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Expand Up @@ -939,7 +939,7 @@ Evaluates the parameter with matching ``name`` to a list of files (for :py:class
Evaluates the parameter with matching ``name`` to a range of values.
%End

QStringList parameterAsFields( const QVariantMap &parameters, const QString &name, QgsProcessingContext &context ) const;
QStringList parameterAsFields( const QVariantMap &parameters, const QString &name, QgsProcessingContext &context ) const;
%Docstring
Evaluates the parameter with matching ``name`` to a list of fields.

Expand All @@ -949,7 +949,7 @@ Evaluates the parameter with matching ``name`` to a list of fields.

QStringList parameterAsStrings( const QVariantMap &parameters, const QString &name, QgsProcessingContext &context ) const;
%Docstring
Evaluates the parameter with matching ``name`` to a list of strings (e.g. field names or point cloud atributes).
Evaluates the parameter with matching ``name`` to a list of strings (e.g. field names or point cloud attributes).

.. versionadded:: 3.32
%End
Expand Down
Expand Up @@ -1476,15 +1476,15 @@ Evaluates the parameter with matching ``definition`` and ``value`` to a range of
.. versionadded:: 3.4
%End

static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariantMap &parameters, QgsProcessingContext &context );
static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariantMap &parameters, QgsProcessingContext &context );
%Docstring
Evaluates the parameter with matching ``definition`` to a list of fields.

.. deprecated::
use :py:func:`~QgsProcessingParameters.parameterAsStrings` instead.
%End

static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context );
static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context );
%Docstring
Evaluates the parameter with matching ``definition`` and ``value`` to a list of fields.

Expand Down
4 changes: 2 additions & 2 deletions src/core/processing/qgsprocessingalgorithm.h
Expand Up @@ -946,10 +946,10 @@ class CORE_EXPORT QgsProcessingAlgorithm
*
* \deprecated use parameterAsStrings() instead.
*/
QStringList parameterAsFields( const QVariantMap &parameters, const QString &name, QgsProcessingContext &context ) const;
Q_DECL_DEPRECATED QStringList parameterAsFields( const QVariantMap &parameters, const QString &name, QgsProcessingContext &context ) const;

/**
* Evaluates the parameter with matching \a name to a list of strings (e.g. field names or point cloud atributes).
* Evaluates the parameter with matching \a name to a list of strings (e.g. field names or point cloud attributes).
*
* \since QGIS 3.32
*/
Expand Down
4 changes: 2 additions & 2 deletions src/core/processing/qgsprocessingparameters.h
Expand Up @@ -1578,15 +1578,15 @@ class CORE_EXPORT QgsProcessingParameters
*
* \deprecated use parameterAsStrings() instead.
*/
static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariantMap &parameters, QgsProcessingContext &context );
Q_DECL_DEPRECATED static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariantMap &parameters, QgsProcessingContext &context );

/**
* Evaluates the parameter with matching \a definition and \a value to a list of fields.
*
* \since QGIS 3.4
* \deprecated use parameterAsStrings() instead.
*/
static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context );
Q_DECL_DEPRECATED static QStringList parameterAsFields( const QgsProcessingParameterDefinition *definition, const QVariant &value, QgsProcessingContext &context );

/**
* Evaluates the parameter with matching \a definition to a list of strings (e.g. field names or point cloud attributes).
Expand Down

0 comments on commit 89ddbc3

Please sign in to comment.