From 3bf3face224a7e12ba95888821a0ac21525af22c Mon Sep 17 00:00:00 2001 From: Yukio Siraichi Date: Fri, 13 Mar 2020 15:41:40 +0900 Subject: tdf#130975 replace `rtl::math::isNan` with `std::isnan`. Change-Id: I5d53e6369d35093445b2efd8936bbf8c6775ff47 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90451 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sw/source/core/attr/cellatr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx index 908a9d2a5553..a0a459ed8596 100644 --- a/sw/source/core/attr/cellatr.cxx +++ b/sw/source/core/attr/cellatr.cxx @@ -213,8 +213,8 @@ bool SwTableBoxValue::operator==( const SfxPoolItem& rAttr ) const assert(SfxPoolItem::operator==(rAttr)); SwTableBoxValue const& rOther( static_cast(rAttr) ); // items with NaN should be equal to enable pooling - return ::rtl::math::isNan( m_nValue ) - ? ::rtl::math::isNan( rOther.m_nValue ) + return std::isnan( m_nValue ) + ? std::isnan( rOther.m_nValue ) : ( m_nValue == rOther.m_nValue ); } -- cgit