Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
nyalldawson committed Jun 13, 2018
1 parent 4438522 commit 9be7293
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python/core/auto_generated/raster/qgsrasterrange.sip.in
Expand Up @@ -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.

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmreclassifybylayer.cpp
Expand Up @@ -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 )
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/raster/qgsrasterrange.h
Expand Up @@ -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 ) )
Expand Down

0 comments on commit 9be7293

Please sign in to comment.