summaryrefslogtreecommitdiff
path: root/svgio/inc/SvgNumber.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@collabora.co.uk>2024-03-07 12:08:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-07 12:53:27 +0100
commit7979508e4328ceb9d6a2dff6a2a080ea64247c7e (patch)
tree3f3b9bfd3c02fbbcf2b6f623828fa3cfedf6e5d5 /svgio/inc/SvgNumber.hxx
parent10e12d0e6316ac20388f589f062e784e8d9aa630 (diff)
Simplify some basegfx::fTools::*orEqual calls
Comparing with zero is simple - the implementation of basegfx::fTools::moreOrEqual calls rtl_math_approxEqual eventually, which special-zases zero. Change-Id: I62f10f63f103d91a201dfeb20e5b3f9010f377c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164526 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/inc/SvgNumber.hxx')
-rw-r--r--svgio/inc/SvgNumber.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgio/inc/SvgNumber.hxx b/svgio/inc/SvgNumber.hxx
index 4d03335cf424..b2fc51b6f7ac 100644
--- a/svgio/inc/SvgNumber.hxx
+++ b/svgio/inc/SvgNumber.hxx
@@ -99,7 +99,7 @@ public:
bool isPositive() const
{
- return basegfx::fTools::moreOrEqual(mfNumber, 0.0);
+ return mfNumber >= 0.0;
}
// Only usable in cases, when the unit is not SvgUnit::percent, otherwise use method solve