Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 16, 2021
1 parent 89ee628 commit e0dfc46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -526,7 +526,7 @@ parameter value when running an algorithm directly from a Python command.
Returns a version of the parameter input ``value``, which is suitable for use in a JSON object.

This method must return only simple values which can be losslessly encapsulated in a serialized
JSON map. For instance, and QGIS class values (such as :py:class:`QgsCoordinateReferenceSystem`) must be
JSON map. For instance, any QGIS class values (such as :py:class:`QgsCoordinateReferenceSystem`) must be
converted to a simple string or numeric value equivalent.

.. seealso:: :py:func:`valueAsPythonString`
Expand Down
4 changes: 2 additions & 2 deletions src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -2480,7 +2480,7 @@ QVariant QgsProcessingParameterDefinition::valueAsJsonObject( const QVariant &va
{
switch ( value.userType() )
{
// simple types which can be directly represented in JSON -- not that strings are NOT handled here yet!
// simple types which can be directly represented in JSON -- note that strings are NOT handled here yet!
case QMetaType::Bool:
case QMetaType::Char:
case QMetaType::Int:
Expand Down Expand Up @@ -2658,7 +2658,7 @@ QString QgsProcessingParameterDefinition::valueAsString( const QVariant &value,

switch ( value.userType() )
{
// simple types which can be directly represented in JSON -- not that strings are NOT handled here yet!
// simple types which can be directly represented in JSON -- note that strings are NOT handled here yet!
case QMetaType::Bool:
case QMetaType::Char:
case QMetaType::Int:
Expand Down
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingparameters.h
Expand Up @@ -621,7 +621,7 @@ class CORE_EXPORT QgsProcessingParameterDefinition
* Returns a version of the parameter input \a value, which is suitable for use in a JSON object.
*
* This method must return only simple values which can be losslessly encapsulated in a serialized
* JSON map. For instance, and QGIS class values (such as QgsCoordinateReferenceSystem) must be
* JSON map. For instance, any QGIS class values (such as QgsCoordinateReferenceSystem) must be
* converted to a simple string or numeric value equivalent.
*
* \see valueAsPythonString()
Expand Down

0 comments on commit e0dfc46

Please sign in to comment.