diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-10 16:27:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-10 18:30:38 +0200 |
commit | 6f151d719ad0b4f0ee6e7a460f6b4af212df3bb2 (patch) | |
tree | 1f4332a63f4a9a2b1e302bb83fc3f03e5204968b | |
parent | 6b8df9d79f89242a503b93b3c9e9f279eeda2105 (diff) |
use rtl::math::expm1 instead of boost::math::expm1
similar to:
commit 1a1dbff33db8a6f2f55a5d92483a03670a610f6a
Date: Mon Feb 13 18:22:28 2017 +0100
get rid of boost::math::log1p() and use rtl::math::log1p()
... which in turn uses the compiler's std::log1p()
Change-Id: I1a09b790345f4da37d86ab7deba09fa20c5f648b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120276
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | extensions/source/scanner/grid.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/source/scanner/grid.cxx b/extensions/source/scanner/grid.cxx index 38046f67b7d2..536ead40b069 100644 --- a/extensions/source/scanner/grid.cxx +++ b/extensions/source/scanner/grid.cxx @@ -19,9 +19,8 @@ #include <sal/config.h> #include <osl/thread.h> +#include <rtl/math.hxx> #include <cstdio> -#include <math.h> -#include <boost/math/special_functions/expm1.hpp> #include <bitmaps.hlst> #include <cmath> @@ -650,7 +649,7 @@ void GridWindow::ChangeMode(ResetType nType) { for( int i = 0; i < m_nValues; i++ ) { - m_pNewYValues[ i ] = m_fMinY + (m_fMaxY-m_fMinY)*(boost::math::expm1((m_pXValues[i]-m_fMinX)/(m_fMaxX-m_fMinX)))/(M_E-1.0); + m_pNewYValues[ i ] = m_fMinY + (m_fMaxY-m_fMinY)*(rtl::math::expm1((m_pXValues[i]-m_fMinX)/(m_fMaxX-m_fMinX)))/(M_E-1.0); } } break; |