From 92d72801050e39952b4e6ab1677cc0e639df81eb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Feb 2022 17:17:58 -0800 Subject: [PATCH] cleanup: use already defined constant Signed-off-by: Dirk Hohndel --- stats/statsvariables.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stats/statsvariables.cpp b/stats/statsvariables.cpp index 8855b003f..2d32345e8 100644 --- a/stats/statsvariables.cpp +++ b/stats/statsvariables.cpp @@ -113,7 +113,7 @@ template<> int invalid_value() } template<> double invalid_value() { - return std::numeric_limits::quiet_NaN(); + return NaN; } template<> QString invalid_value() { @@ -121,7 +121,6 @@ template<> QString invalid_value() } template<> StatsQuartiles invalid_value() { - double NaN = std::numeric_limits::quiet_NaN(); return { std::vector(), NaN, NaN, NaN, NaN, NaN }; }