[Libreoffice-commits] core.git: basegfx/source

Zsolt Bölöny bolony.zsolt at gmail.com
Tue May 19 12:38:38 PDT 2015


 basegfx/source/polygon/b3dpolygontools.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 15a7ae3e8008ef7dbafdcb4b7604cac1fe1f9061
Author: Zsolt Bölöny <bolony.zsolt at gmail.com>
Date:   Mon May 18 23:50:47 2015 +0200

    That was totally pointless
    
    Change-Id: I6046461b2e26a8506249c4a2fdd783bbd2ec223f
    Reviewed-on: https://gerrit.libreoffice.org/15810
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Tested-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx
index 1ca3820..10e3581 100644
--- a/basegfx/source/polygon/b3dpolygontools.cxx
+++ b/basegfx/source/polygon/b3dpolygontools.cxx
@@ -642,8 +642,6 @@ namespace basegfx
 
                 if(areParallel(aEdgeVector, aTestVector))
                 {
-                    const double fZero(0.0);
-                    const double fOne(1.0);
                     double fParamTestOnCurr(0.0);
 
                     if(aEdgeVector.getX() > aEdgeVector.getY())
@@ -673,7 +671,7 @@ namespace basegfx
                         }
                     }
 
-                    if(fTools::more(fParamTestOnCurr, fZero) && fTools::less(fParamTestOnCurr, fOne))
+                    if(fTools::more(fParamTestOnCurr, 0.0) && fTools::less(fParamTestOnCurr, 1.0))
                     {
                         return true;
                     }


More information about the Libreoffice-commits mailing list