[Libreoffice-commits] core.git: extensions/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 10 16:31:16 UTC 2021
extensions/source/scanner/grid.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 6f151d719ad0b4f0ee6e7a460f6b4af212df3bb2
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Aug 10 16:27:10 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 10 18:30:38 2021 +0200
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 at redhat.com>
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;
More information about the Libreoffice-commits
mailing list