Skip to content

Commit 1d770ff

Browse files
committed
Switch to std::quiet_nan
1 parent 773713c commit 1d770ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/position/providers/simulatedpositionprovider.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ void SimulatedPositionProvider::generateRadiusPosition()
106106
}
107107
else
108108
{
109-
position.elevation = qQNaN();
110-
position.elevation_diff = qQNaN();
109+
position.elevation = std::numeric_limits<double>::quiet_NaN();
110+
position.elevation_diff = std::numeric_limits<double>::quiet_NaN();
111111
}
112112
}
113113
else
114114
{
115-
position.elevation = qQNaN();
116-
position.elevation_diff = qQNaN();
115+
position.elevation = std::numeric_limits<double>::quiet_NaN();
116+
position.elevation_diff = std::numeric_limits<double>::quiet_NaN();
117117
}
118118

119119
const QDateTime timestamp = QDateTime::currentDateTime();
@@ -156,8 +156,8 @@ void SimulatedPositionProvider::generateConstantPosition()
156156
}
157157
else
158158
{
159-
position.elevation = qQNaN();
160-
position.elevation_diff = qQNaN();
159+
position.elevation = std::numeric_limits<double>::quiet_NaN();
160+
position.elevation_diff = std::numeric_limits<double>::quiet_NaN();
161161
}
162162
position.utcDateTime = QDateTime::currentDateTime();
163163
position.direction = 360 - static_cast<int>( mAngle ) % 360;

0 commit comments

Comments
 (0)