drawinglayer/source/primitive2d/borderlineprimitive2d.cxx |    2 +-
 vcl/source/outdev/bitmapex.cxx                            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d98f71fb6b8b2b559bffc8d10584fe1dd7cf5843
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Mar 7 15:54:32 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Mar 7 18:19:30 2024 +0100

    Simplify some rtl::math::approxEqual calls
    
    Comparing with zero is simple - the implementation special-zases zero.
    
    Change-Id: Ia2fe8a1100941f72023a74955ebfbb4f5f25b90d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164540
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx 
b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
index 3ea94f1aefbb..79e34ec972ce 100644
--- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx
@@ -331,7 +331,7 @@ namespace drawinglayer::primitive2d
             // direction has to be equal -> cross product == 0.0
             const basegfx::B2DVector aVT(pCandidateA->getEnd() - 
pCandidateA->getStart());
             const basegfx::B2DVector aVC(pCandidateB->getEnd() - 
pCandidateB->getStart());
-            if(!rtl::math::approxEqual(0.0, aVC.cross(aVT)))
+            if(aVC.cross(aVT) != 0)
             {
                 return Primitive2DReference();
             }
diff --git a/vcl/source/outdev/bitmapex.cxx b/vcl/source/outdev/bitmapex.cxx
index 04a50d554570..defabf09b8fd 100644
--- a/vcl/source/outdev/bitmapex.cxx
+++ b/vcl/source/outdev/bitmapex.cxx
@@ -459,7 +459,7 @@ void OutputDevice::DrawTransformedBitmapEx(
     if(rBitmapEx.IsEmpty())
         return;
 
-    if(rtl::math::approxEqual( fAlpha, 0.0 ))
+    if( fAlpha == 0.0 )
         return;
 
     // MM02 compared to other public methods of OutputDevice

Reply via email to