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

Takeshi Abe tabe at fixedpoint.jp
Sun Mar 22 04:39:26 PDT 2015


 starmath/source/node.cxx     |    4 ++--
 starmath/source/smdetect.cxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6ce97778dec8824058e8216e103a517592bca2c1
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Mar 22 20:23:52 2015 +0900

    Mark as static
    
    Change-Id: I0047c723518caee631bb629da8127645bf4a1c5f

diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 59eee48..80bba2c 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -1217,7 +1217,7 @@ bool IsPointInLine(const Point &rPoint1,
     OSL_ENSURE(rHeading2 != Point(), "Sm : 0 vector");
 
     bool bRes = false;
-    const double eps = 5.0 * DBL_EPSILON;
+    static const double eps = 5.0 * DBL_EPSILON;
 
     double fLambda;
     if (labs(rHeading2.X()) > labs(rHeading2.Y()))
@@ -1243,7 +1243,7 @@ sal_uInt16 GetLineIntersectionPoint(Point &rResult,
     OSL_ENSURE(rHeading2 != Point(), "Sm : 0 vector");
 
     sal_uInt16 nRes = 1;
-    const double eps = 5.0 * DBL_EPSILON;
+    static const double eps = 5.0 * DBL_EPSILON;
 
     // are the direction vectors linearly dependent?
     double  fDet = Det(rHeading1, rHeading2);
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index 03ca462..e00ec08 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -91,7 +91,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
         // 200 should be enough for the XML
         // version, encoding and !DOCTYPE
         // stuff I hope?
-        const sal_uInt16 nBufferSize = 200;
+        static const sal_uInt16 nBufferSize = 200;
         char aBuffer[nBufferSize+1];
         aBuffer[nBufferSize] = 0;
         pInStrm->Seek( STREAM_SEEK_TO_BEGIN );


More information about the Libreoffice-commits mailing list