Skip to content

Commit d3854e9

Browse files
committed
Remove use of some other q* functions which are implemented in std
1 parent ad89193 commit d3854e9

39 files changed

+106
-106
lines changed

src/analysis/interpolation/qgsinterpolator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int QgsInterpolator::cacheBaseData()
8282
continue;
8383
}
8484
attributeValue = attributeVariant.toDouble( &attributeConversionOk );
85-
if ( !attributeConversionOk || qIsNaN( attributeValue ) ) //don't consider vertices with attributes like 'nan' for the interpolation
85+
if ( !attributeConversionOk || std::isnan( attributeValue ) ) //don't consider vertices with attributes like 'nan' for the interpolation
8686
{
8787
continue;
8888
}

src/analysis/interpolation/qgstininterpolator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
176176
return 3;
177177
}
178178
attributeValue = attributeVariant.toDouble( &attributeConversionOk );
179-
if ( !attributeConversionOk || qIsNaN( attributeValue ) ) //don't consider vertices with attributes like 'nan' for the interpolation
179+
if ( !attributeConversionOk || std::isnan( attributeValue ) ) //don't consider vertices with attributes like 'nan' for the interpolation
180180
{
181181
return 4;
182182
}

src/analysis/raster/qgsalignraster.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ void QgsAlignRaster::dump() const
390390
int QgsAlignRaster::suggestedReferenceLayer() const
391391
{
392392
int bestIndex = -1;
393-
double bestCellArea = qInf();
393+
double bestCellArea = INFINITY;
394394
QSizeF cs;
395395
int i = 0;
396396

src/analysis/vector/qgszonalstatistics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ void QgsZonalStatistics::statisticsFromPreciseIntersection( const QgsGeometry &p
497497

498498
bool QgsZonalStatistics::validPixel( float value ) const
499499
{
500-
if ( value == mInputNodataValue || qIsNaN( value ) )
500+
if ( value == mInputNodataValue || std::isnan( value ) )
501501
{
502502
return false;
503503
}

src/app/qgsmergeattributesdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ QVariant QgsMergeAttributesDialog::calcStatistic( int col, QgsStatisticalSummary
369369
summary.calculate( values );
370370

371371
double val = summary.statistic( stat );
372-
return qIsNaN( val ) ? QVariant( QVariant::Double ) : val;
372+
return std::isnan( val ) ? QVariant( QVariant::Double ) : val;
373373
}
374374

375375
QVariant QgsMergeAttributesDialog::concatenationAttribute( int col )

src/app/qgsrasterlayerproperties.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ void QgsRasterLayerProperties::sync()
669669

670670
mSrcNoDataValueCheckBox->setChecked( mRasterLayer->dataProvider()->useSourceNoDataValue( 1 ) );
671671

672-
bool enableSrcNoData = mRasterLayer->dataProvider()->sourceHasNoDataValue( 1 ) && !qIsNaN( mRasterLayer->dataProvider()->sourceNoDataValue( 1 ) );
672+
bool enableSrcNoData = mRasterLayer->dataProvider()->sourceHasNoDataValue( 1 ) && !std::isnan( mRasterLayer->dataProvider()->sourceNoDataValue( 1 ) );
673673

674674
mSrcNoDataValueCheckBox->setEnabled( enableSrcNoData );
675675
lblSrcNoDataValue->setEnabled( enableSrcNoData );
@@ -1231,14 +1231,14 @@ void QgsRasterLayerProperties::setTransparencyCell( int row, int column, double
12311231
case Qgis::Float32:
12321232
case Qgis::Float64:
12331233
lineEdit->setValidator( new QDoubleValidator( nullptr ) );
1234-
if ( !qIsNaN( value ) )
1234+
if ( !std::isnan( value ) )
12351235
{
12361236
valueString = QgsRasterBlock::printValue( value );
12371237
}
12381238
break;
12391239
default:
12401240
lineEdit->setValidator( new QIntValidator( nullptr ) );
1241-
if ( !qIsNaN( value ) )
1241+
if ( !std::isnan( value ) )
12421242
{
12431243
valueString = QString::number( static_cast<int>( value ) );
12441244
}

src/app/qgsstatisticalsummarydockwidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void QgsStatisticalSummaryDockWidget::updateNumericStatistics( bool selectedOnly
185185
{
186186
double val = stats.statistic( stat );
187187
addRow( row, QgsStatisticalSummary::displayName( stat ),
188-
qIsNaN( val ) ? QString() : QString::number( val ),
188+
std::isnan( val ) ? QString() : QString::number( val ),
189189
stats.count() != 0 );
190190
row++;
191191
}

src/core/composer/qgscomposernodesitem.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ bool QgsComposerNodesItem::addNode( QPointF pt,
7676
const double b = pt1.y() - coef * pt1.x();
7777

7878
double distance = std::numeric_limits<double>::max();
79-
if ( qIsInf( coef ) )
79+
if ( std::isinf( coef ) )
8080
distance = std::fabs( pt1.x() - start.x() );
8181
else
8282
{
8383
const double coef2 = ( -1 / coef );
8484
const double b2 = start.y() - coef2 * start.x();
8585

8686
QPointF inter;
87-
if ( qIsInf( coef2 ) )
87+
if ( std::isinf( coef2 ) )
8888
{
8989
distance = std::fabs( pt1.y() - start.y() );
9090
inter.setX( start.x() );

src/core/dxf/qgsdxfexport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ void QgsDxfExport::writeGroup( int code, const QgsPoint &p )
443443
{
444444
writeGroup( code + 10, p.x() );
445445
writeGroup( code + 20, p.y() );
446-
if ( p.is3D() && qIsFinite( p.z() ) )
446+
if ( p.is3D() && std::isfinite( p.z() ) )
447447
writeGroup( code + 30, p.z() );
448448
}
449449

src/core/expression/qgsexpressionutils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class QgsExpressionUtils
144144
{
145145
bool ok;
146146
double val = v.toString().toDouble( &ok );
147-
ok = ok && qIsFinite( val ) && !qIsNaN( val );
147+
ok = ok && std::isfinite( val ) && !std::isnan( val );
148148
return ok;
149149
}
150150
return false;
@@ -191,7 +191,7 @@ class QgsExpressionUtils
191191
{
192192
bool ok;
193193
double x = value.toDouble( &ok );
194-
if ( !ok || qIsNaN( x ) || !qIsFinite( x ) )
194+
if ( !ok || std::isnan( x ) || !std::isfinite( x ) )
195195
{
196196
parent->setEvalErrorString( QObject::tr( "Cannot convert '%1' to double" ).arg( value.toString() ) );
197197
return 0;

src/core/geometry/qgscurve.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool QgsCurve::isClosed() const
3535
bool closed = qgsDoubleNear( start.x(), end.x(), 1E-8 ) &&
3636
qgsDoubleNear( start.y(), end.y(), 1E-8 );
3737
if ( is3D() && closed )
38-
closed &= qgsDoubleNear( start.z(), end.z(), 1E-8 ) || ( qIsNaN( start.z() ) && qIsNaN( end.z() ) );
38+
closed &= qgsDoubleNear( start.z(), end.z(), 1E-8 ) || ( std::isnan( start.z() ) && std::isnan( end.z() ) );
3939
return closed;
4040
}
4141

src/core/geometry/qgspoint.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ QgsPoint::QgsPoint( double x, double y, double z, double m, QgsWkbTypes::Type wk
4343
Q_ASSERT( QgsWkbTypes::flatType( wkbType ) == QgsWkbTypes::Point );
4444
mWkbType = wkbType;
4545
}
46-
else if ( qIsNaN( z ) )
46+
else if ( std::isnan( z ) )
4747
{
48-
if ( qIsNaN( m ) )
48+
if ( std::isnan( m ) )
4949
mWkbType = QgsWkbTypes::Point;
5050
else
5151
mWkbType = QgsWkbTypes::PointM;
5252
}
53-
else if ( qIsNaN( m ) )
53+
else if ( std::isnan( m ) )
5454
mWkbType = QgsWkbTypes::PointZ;
5555
else
5656
mWkbType = QgsWkbTypes::PointZM;
@@ -101,9 +101,9 @@ bool QgsPoint::operator==( const QgsPoint &pt ) const
101101
equal &= qgsDoubleNear( pt.x(), mX, 1E-8 );
102102
equal &= qgsDoubleNear( pt.y(), mY, 1E-8 );
103103
if ( QgsWkbTypes::hasZ( type ) )
104-
equal &= qgsDoubleNear( pt.z(), mZ, 1E-8 ) || ( qIsNaN( pt.z() ) && qIsNaN( mZ ) );
104+
equal &= qgsDoubleNear( pt.z(), mZ, 1E-8 ) || ( std::isnan( pt.z() ) && std::isnan( mZ ) );
105105
if ( QgsWkbTypes::hasM( type ) )
106-
equal &= qgsDoubleNear( pt.m(), mM, 1E-8 ) || ( qIsNaN( pt.m() ) && qIsNaN( mM ) );
106+
equal &= qgsDoubleNear( pt.m(), mM, 1E-8 ) || ( std::isnan( pt.m() ) && std::isnan( mM ) );
107107

108108
return equal;
109109
}
@@ -501,7 +501,7 @@ double QgsPoint::distanceSquared( const QgsPoint &other ) const
501501
double QgsPoint::distance3D( double x, double y, double z ) const
502502
{
503503
double zDistSquared = 0.0;
504-
if ( is3D() || !qIsNaN( z ) )
504+
if ( is3D() || !std::isnan( z ) )
505505
zDistSquared = ( mZ - z ) * ( mZ - z );
506506

507507
return sqrt( ( mX - x ) * ( mX - x ) + ( mY - y ) * ( mY - y ) + zDistSquared );
@@ -519,7 +519,7 @@ double QgsPoint::distance3D( const QgsPoint &other ) const
519519
double QgsPoint::distanceSquared3D( double x, double y, double z ) const
520520
{
521521
double zDistSquared = 0.0;
522-
if ( is3D() || !qIsNaN( z ) )
522+
if ( is3D() || !std::isnan( z ) )
523523
zDistSquared = ( mZ - z ) * ( mZ - z );
524524

525525
return ( mX - x ) * ( mX - x ) + ( mY - y ) * ( mY - y ) + zDistSquared;

src/core/geometry/qgsrectangle.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,11 @@ QgsRectangle &QgsRectangle::operator=( const QgsRectangle &r )
377377

378378
bool QgsRectangle::isFinite() const
379379
{
380-
if ( qIsInf( mXmin ) || qIsInf( mYmin ) || qIsInf( mXmax ) || qIsInf( mYmax ) )
380+
if ( std::isinf( mXmin ) || std::isinf( mYmin ) || std::isinf( mXmax ) || std::isinf( mYmax ) )
381381
{
382382
return false;
383383
}
384-
if ( qIsNaN( mXmin ) || qIsNaN( mYmin ) || qIsNaN( mXmax ) || qIsNaN( mYmax ) )
384+
if ( std::isnan( mXmin ) || std::isnan( mYmin ) || std::isnan( mXmax ) || std::isnan( mYmax ) )
385385
{
386386
return false;
387387
}

src/core/qgsaggregatecalculator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ QVariant QgsAggregateCalculator::calculateNumericAggregate( QgsFeatureIterator &
434434
}
435435
s.finalize();
436436
double val = s.statistic( stat );
437-
return qIsNaN( val ) ? QVariant() : val;
437+
return std::isnan( val ) ? QVariant() : val;
438438
}
439439

440440
QVariant QgsAggregateCalculator::calculateStringAggregate( QgsFeatureIterator &fit, int attr, QgsExpression *expression,

src/core/qgsclipper.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ inline void QgsClipper::trimFeatureToBoundary(
234234
// look at each edge of the polygon in turn
235235

236236
//ignore segments with nan or inf coordinates
237-
if ( qIsNaN( inX[i2] ) || qIsNaN( inY[i2] ) || qIsInf( inX[i2] ) || qIsInf( inY[i2] )
238-
|| qIsNaN( inX[i1] ) || qIsNaN( inY[i1] ) || qIsInf( inX[i1] ) || qIsInf( inY[i1] ) )
237+
if ( std::isnan( inX[i2] ) || std::isnan( inY[i2] ) || std::isinf( inX[i2] ) || std::isinf( inY[i2] )
238+
|| std::isnan( inX[i1] ) || std::isnan( inY[i1] ) || std::isinf( inX[i1] ) || std::isinf( inY[i1] ) )
239239
{
240240
i1 = i2;
241241
continue;

src/core/qgscolorramp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
static QColor _interpolate( const QColor &c1, const QColor &c2, const double value )
3131
{
32-
if ( qIsNaN( value ) ) return c2;
32+
if ( std::isnan( value ) ) return c2;
3333

3434
qreal r = ( c1.redF() + value * ( c2.redF() - c1.redF() ) );
3535
qreal g = ( c1.greenF() + value * ( c2.greenF() - c1.greenF() ) );
@@ -433,7 +433,7 @@ QColor QgsRandomColorRamp::color( double value ) const
433433
int maxVal = 255;
434434

435435
//if value is nan, then use last precalculated color
436-
int colorIndex = ( !qIsNaN( value ) ? value : 1 ) * ( mTotalColorCount - 1 );
436+
int colorIndex = ( !std::isnan( value ) ? value : 1 ) * ( mTotalColorCount - 1 );
437437
if ( mTotalColorCount >= 1 && mPrecalculatedColors.length() > colorIndex )
438438
{
439439
//use precalculated hue

src/core/qgscoordinatetransform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ QgsRectangle QgsCoordinateTransform::transformBoundingBox( const QgsRectangle &r
410410

411411
for ( int i = 0; i < nXPoints * nYPoints; i++ )
412412
{
413-
if ( !qIsFinite( x[i] ) || !qIsFinite( y[i] ) )
413+
if ( !std::isfinite( x[i] ) || !std::isfinite( y[i] ) )
414414
{
415415
continue;
416416
}

src/core/qgspointxy.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ QString QgsPointXY::toString() const
5353

5454
QString QgsPointXY::toString( int precision ) const
5555
{
56-
QString x = qIsFinite( mX ) ? QString::number( mX, 'f', precision ) : QObject::tr( "infinite" );
57-
QString y = qIsFinite( mY ) ? QString::number( mY, 'f', precision ) : QObject::tr( "infinite" );
56+
QString x = std::isfinite( mX ) ? QString::number( mX, 'f', precision ) : QObject::tr( "infinite" );
57+
QString y = std::isfinite( mY ) ? QString::number( mY, 'f', precision ) : QObject::tr( "infinite" );
5858
return QStringLiteral( "%1,%2" ).arg( x, y );
5959
}
6060

src/core/qgsstatisticalsummary.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include <QMap>
2020
#include <QVariant>
21-
21+
#include <cmath>
2222
#include "qgis_core.h"
2323

2424
/***************************************************************************
@@ -179,7 +179,7 @@ class CORE_EXPORT QgsStatisticalSummary
179179
/** Returns calculated range (difference between maximum and minimum values). A NaN value may be returned if the range cannot
180180
* be calculated.
181181
*/
182-
double range() const { return qIsNaN( mMax ) || qIsNaN( mMin ) ? std::numeric_limits<double>::quiet_NaN() : mMax - mMin; }
182+
double range() const { return std::isnan( mMax ) || std::isnan( mMin ) ? std::numeric_limits<double>::quiet_NaN() : mMax - mMin; }
183183

184184
/** Returns population standard deviation. This is only calculated if Statistic::StDev has
185185
* been specified in the constructor or via setStatistics. A NaN value may be returned if the standard deviation cannot
@@ -239,7 +239,7 @@ class CORE_EXPORT QgsStatisticalSummary
239239
* \see firstQuartile
240240
* \see thirdQuartile
241241
*/
242-
double interQuartileRange() const { return qIsNaN( mThirdQuartile ) || qIsNaN( mFirstQuartile ) ? std::numeric_limits<double>::quiet_NaN() : mThirdQuartile - mFirstQuartile; }
242+
double interQuartileRange() const { return std::isnan( mThirdQuartile ) || std::isnan( mFirstQuartile ) ? std::numeric_limits<double>::quiet_NaN() : mThirdQuartile - mFirstQuartile; }
243243

244244
/** Returns the friendly display name for a statistic
245245
* \param statistic statistic to return name for

src/core/qgsvectorlayerdiagramprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ QgsLabelFeature *QgsVectorLayerDiagramProvider::registerDiagram( QgsFeature &fea
266266
ddPosX = mSettings.dataDefinedProperties().valueAsDouble( QgsDiagramLayerSettings::PositionX, context.expressionContext(), std::numeric_limits<double>::quiet_NaN() );
267267
ddPosY = mSettings.dataDefinedProperties().valueAsDouble( QgsDiagramLayerSettings::PositionY, context.expressionContext(), std::numeric_limits<double>::quiet_NaN() );
268268

269-
ddPos = !qIsNaN( ddPosX ) && !qIsNaN( ddPosY );
269+
ddPos = !std::isnan( ddPosX ) && !std::isnan( ddPosY );
270270

271271
if ( ddPos )
272272
{

src/core/raster/qgscolorrampshader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ bool QgsColorRampShader::shade( double value, int *returnRedValue, int *returnGr
313313
{
314314
return false;
315315
}
316-
if ( qIsNaN( value ) || qIsInf( value ) )
316+
if ( std::isnan( value ) || std::isinf( value ) )
317317
return false;
318318

319319
int colorRampItemListCount = mColorRampItemList.count();

src/core/raster/qgsraster.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bool QgsRaster::isRepresentableValue( double value, Qgis::DataType dataType )
3434
case Qgis::Int32:
3535
return value >= std::numeric_limits<qint32>::min() && value <= std::numeric_limits<qint32>::max();
3636
case Qgis::Float32:
37-
return qIsNaN( value ) || qIsInf( value ) ||
37+
return std::isnan( value ) || std::isinf( value ) ||
3838
( value >= -std::numeric_limits<float>::max() && value <= std::numeric_limits<float>::max() );
3939
default:
4040
return true;

src/core/raster/qgsrasterblock.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ void QgsRasterBlock::resetNoDataValue()
262262
bool QgsRasterBlock::isNoDataValue( double value, double noDataValue )
263263
{
264264
// TODO: optimize no data value test by memcmp()
265-
// More precise would be qIsNaN(value) && qIsNaN(noDataValue(bandNo)), but probably
265+
// More precise would be std::isnan(value) && std::isnan(noDataValue(bandNo)), but probably
266266
// not important and slower
267-
if ( qIsNaN( value ) ||
267+
if ( std::isnan( value ) ||
268268
qgsDoubleNear( value, noDataValue ) )
269269
{
270270
return true;

src/core/raster/qgsrasterblock.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ inline double QgsRasterBlock::value( qgssize index ) const SIP_SKIP
532532

533533
inline bool QgsRasterBlock::isNoDataValue( double value ) const SIP_SKIP
534534
{
535-
return qIsNaN( value ) || qgsDoubleNear( value, mNoDataValue );
535+
return std::isnan( value ) || qgsDoubleNear( value, mNoDataValue );
536536
}
537537

538538
#endif

src/core/raster/qgsrasterchecker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void QgsRasterChecker::compare( const QString &paramName, int verifiedVal, int e
224224
bool QgsRasterChecker::compare( double verifiedVal, double expectedVal, double tolerance )
225225
{
226226
// values may be nan
227-
return ( qIsNaN( verifiedVal ) && qIsNaN( expectedVal ) ) || ( std::fabs( verifiedVal - expectedVal ) <= tolerance );
227+
return ( std::isnan( verifiedVal ) && std::isnan( expectedVal ) ) || ( std::fabs( verifiedVal - expectedVal ) <= tolerance );
228228
}
229229

230230
void QgsRasterChecker::compare( const QString &paramName, double verifiedVal, double expectedVal, QString &report, bool &ok, double tolerance )

src/core/raster/qgsrasterinterface.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void QgsRasterInterface::initHistogram( QgsRasterHistogram &histogram,
260260

261261
int mySrcDataType = sourceDataType( bandNo );
262262

263-
if ( qIsNaN( histogram.minimum ) )
263+
if ( std::isnan( histogram.minimum ) )
264264
{
265265
// TODO: this was OK when stats/histogram were calced in provider,
266266
// but what TODO in other interfaces? Check for mInput for now.
@@ -277,7 +277,7 @@ void QgsRasterInterface::initHistogram( QgsRasterHistogram &histogram,
277277
histogram.minimum = stats.minimumValue;
278278
}
279279
}
280-
if ( qIsNaN( histogram.maximum ) )
280+
if ( std::isnan( histogram.maximum ) )
281281
{
282282
if ( !mInput && mySrcDataType == Qgis::Byte )
283283
{

src/core/raster/qgsrastertransparency.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void QgsRasterTransparency::setTransparentThreeValuePixelList( const QList<QgsRa
104104
int QgsRasterTransparency::alphaValue( double value, int globalTransparency ) const
105105
{
106106
//if NaN return 0, transparent
107-
if ( qIsNaN( value ) )
107+
if ( std::isnan( value ) )
108108
{
109109
return 0;
110110
}
@@ -144,7 +144,7 @@ int QgsRasterTransparency::alphaValue( double value, int globalTransparency ) co
144144
int QgsRasterTransparency::alphaValue( double redValue, double greenValue, double blueValue, int globalTransparency ) const
145145
{
146146
//if NaN return 0, transparent
147-
if ( qIsNaN( redValue ) || qIsNaN( greenValue ) || qIsNaN( blueValue ) )
147+
if ( std::isnan( redValue ) || std::isnan( greenValue ) || std::isnan( blueValue ) )
148148
{
149149
return 0;
150150
}

src/gui/qgsrasterlayersaveasdialog.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -527,14 +527,14 @@ void QgsRasterLayerSaveAsDialog::addNoDataRow( double min, double max )
527527
case Qgis::Float32:
528528
case Qgis::Float64:
529529
lineEdit->setValidator( new QDoubleValidator( nullptr ) );
530-
if ( !qIsNaN( value ) )
530+
if ( !std::isnan( value ) )
531531
{
532532
valueString = QgsRasterBlock::printValue( value );
533533
}
534534
break;
535535
default:
536536
lineEdit->setValidator( new QIntValidator( nullptr ) );
537-
if ( !qIsNaN( value ) )
537+
if ( !std::isnan( value ) )
538538
{
539539
valueString = QString::number( static_cast<int>( value ) );
540540
}

0 commit comments

Comments
 (0)