summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorYukio Siraichi <yukio.siraichi@gmail.com>2020-03-14 02:33:55 +0900
committerMike Kaganski <mike.kaganski@collabora.com>2020-03-14 09:10:34 +0100
commit8f8b64cad377c6d767cdf291fd00225658bd02c5 (patch)
treede5f87582bf88b030f57742109aaa289f18e428c /svl
parent2eb0e7594cc875dd0960822d9403b573ac00f739 (diff)
tdf#130974 replace `rtl::math::isSignBitSet` with `std::signbit`.
Change-Id: I91235eee8c6a9d4a59c1933527b49141f64cd91b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90478 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zformat.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 81b20c92bfbb..e522977afdff 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -2245,7 +2245,7 @@ namespace {
void lcl_GetOutputStringScientific(double fNumber, sal_uInt16 nCharCount,
const SvNumberFormatter& rFormatter, OUString& rOutString)
{
- bool bSign = ::rtl::math::isSignBitSet(fNumber);
+ bool bSign = std::signbit(fNumber);
// 1.000E+015 (one digit and the decimal point, and the two chars +
// nExpDigit for the exponential part, totalling 6 or 7).
@@ -2369,7 +2369,7 @@ bool SvNumberformat::GetOutputString(double fNumber, sal_uInt16 nCharCount, OUSt
return false;
}
double fTestNum = fNumber;
- bool bSign = ::rtl::math::isSignBitSet(fTestNum);
+ bool bSign = std::signbit(fTestNum);
if (bSign)
{
fTestNum = -fTestNum;
@@ -2474,7 +2474,7 @@ bool SvNumberformat::GetOutputString(double fNumber,
case SvNumFormatType::NUMBER: // Standard number format
if (rScan.GetStandardPrec() == SvNumberFormatter::UNLIMITED_PRECISION)
{
- if (::rtl::math::isSignBitSet(fNumber))
+ if (std::signbit(fNumber))
{
if (!(fNumber < 0.0))
fNumber = -fNumber; // do not display -0.0
@@ -4245,7 +4245,7 @@ bool SvNumberformat::ImpGetNumberOutput(double fNumber,
else
{
bSign = false;
- if ( ::rtl::math::isSignBitSet( fNumber ) )
+ if ( std::signbit( fNumber ) )
{
fNumber = -fNumber; // yes, -0.0 is possible, eliminate '-'
}