Skip to content
Permalink
Browse files

Minor fixes

  • Loading branch information
nyalldawson committed Jun 11, 2018
1 parent 4438522 commit 9be729321a4e820d0d545d55a2f049b891fa1a79
@@ -86,7 +86,7 @@ Sets the maximum value for the range.

void setBounds( BoundsType type );
%Docstring
Setss the bounds ``type`` for the range, which specifies
Sets the bounds ``type`` for the range, which specifies
whether or not the min and max values themselves are included
in the range.

@@ -95,7 +95,7 @@ in the range.
.. versionadded:: 3.2
%End

bool operator==( QgsRasterRange o ) const;
bool operator==( const QgsRasterRange &o ) const;

bool contains( double value ) const;
%Docstring
@@ -273,7 +273,7 @@ bool QgsReclassifyByTableAlgorithm::_prepareAlgorithm( const QVariantMap &, QgsP
QVector<QgsReclassifyUtils::RasterClass> QgsReclassifyByTableAlgorithm::createClasses( QgsReclassifyUtils::RasterClass::BoundsType boundsType, const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback * )
{
const QVariantList table = parameterAsMatrix( parameters, QStringLiteral( "TABLE" ), context );
int rows = table.count() / 3;
const int rows = table.count() / 3;
QVector< QgsReclassifyUtils::RasterClass > classes;
for ( int row = 0; row < rows; ++row )
{
@@ -92,15 +92,15 @@ class CORE_EXPORT QgsRasterRange
double setMax( double max ) { return mMax = max; }

/**
* Setss the bounds \a type for the range, which specifies
* Sets the bounds \a type for the range, which specifies
* whether or not the min and max values themselves are included
* in the range.
* \see bounds()
* \since QGIS 3.2
*/
void setBounds( BoundsType type ) { mType = type; }

inline bool operator==( QgsRasterRange o ) const
inline bool operator==( const QgsRasterRange &o ) const
{
return ( ( std::isnan( mMin ) && std::isnan( o.mMin ) ) || qgsDoubleNear( mMin, o.mMin ) )
&& ( ( std::isnan( mMax ) && std::isnan( o.mMax ) ) || qgsDoubleNear( mMax, o.mMax ) )

0 comments on commit 9be7293

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