diff options
author | Yukio Siraichi <yukio.siraichi@gmail.com> | 2020-03-09 23:22:20 +0900 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-03-12 10:34:46 +0100 |
commit | 8e173a965d5684372e3fe0ee3d3599032bcb86c2 (patch) | |
tree | 7cd8282e599418b9c5cd1e3667fcba04c787b153 /chart2/source/view/charttypes | |
parent | 056ba01ee95db5dfd7df362e72bb418893c4c530 (diff) |
tdf#130977 replace `rtl::math::isFinite` with `std::isfinite`.
- make all calls look like `std::isfinite`.
- change the comments referring `rtl::math::isFinite`.
Change-Id: I0cde9ceb9f20150467b454cddde5e62003cfde1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90234
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2/source/view/charttypes')
-rw-r--r-- | chart2/source/view/charttypes/NetChart.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/view/charttypes/NetChart.cxx b/chart2/source/view/charttypes/NetChart.cxx index 2f99bece1cfc..6c4a202a7bc4 100644 --- a/chart2/source/view/charttypes/NetChart.cxx +++ b/chart2/source/view/charttypes/NetChart.cxx @@ -125,7 +125,7 @@ bool NetChart::impl_createLine( VDataSeries* pSeries double fFirstY = pSeries->getYValue( 0 ); double fLastY = pSeries->getYValue( VSeriesPlotter::getPointCount() - 1 ); if( (pSeries->getMissingValueTreatment() != css::chart::MissingValueTreatment::LEAVE_GAP) - || (::rtl::math::isFinite( fFirstY ) && ::rtl::math::isFinite( fLastY )) ) + || (std::isfinite( fFirstY ) && std::isfinite( fLastY )) ) { // connect last point in last polygon with first point in first polygon ::basegfx::B2DRectangle aScaledLogicClipDoubleRect( pPosHelper->getScaledLogicClipDoubleRect() ); diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index c971bf04e1ec..b9affd0e9f88 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -871,8 +871,8 @@ double lcl_getErrorBarLogicLength( if(fMaxValue<*pValues) fMaxValue=*pValues; } - if( ::rtl::math::isFinite( fMaxValue ) && - ::rtl::math::isFinite( fPercent )) + if( std::isfinite( fMaxValue ) && + std::isfinite( fPercent )) { fResult = fMaxValue * fPercent / 100.0; } @@ -1039,7 +1039,7 @@ void VSeriesPlotter::createErrorBar( if( bShowPositive ) { double fLength = lcl_getErrorBarLogicLength( aData, xErrorBarProperties, nErrorBarStyle, nIndex, true, bYError ); - if( ::rtl::math::isFinite( fLength ) ) + if( std::isfinite( fLength ) ) { double fLocalX = fX; double fLocalY = fY; @@ -1062,7 +1062,7 @@ void VSeriesPlotter::createErrorBar( if( bShowNegative ) { double fLength = lcl_getErrorBarLogicLength( aData, xErrorBarProperties, nErrorBarStyle, nIndex, false, bYError ); - if( ::rtl::math::isFinite( fLength ) ) + if( std::isfinite( fLength ) ) { double fLocalX = fX; double fLocalY = fY; @@ -1240,10 +1240,10 @@ void VSeriesPlotter::createErrorRectangle( nErrorBorderStyleY, nIndex, false, true ); } - if ( !( ::rtl::math::isFinite( fPosX ) && - ::rtl::math::isFinite( fPosY ) && - ::rtl::math::isFinite( fNegX ) && - ::rtl::math::isFinite( fNegY ) ) ) + if ( !( std::isfinite( fPosX ) && + std::isfinite( fPosY ) && + std::isfinite( fNegX ) && + std::isfinite( fNegY ) ) ) return; drawing::Position3D aBottomLeft( lcl_transformMixedToScene( m_pPosHelper, |