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

Takeshi Abe tabe at fixedpoint.jp
Sat Apr 4 02:40:15 PDT 2015


 starmath/source/node.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 5bf597385aa76e6c66ad2a7000fc61781a5c2514
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat Apr 4 18:35:45 2015 +0900

    Mark it as static and const
    
    Change-Id: Ide66aecd5bd9beda298da189c3564908c5756cdd

diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 50638c2..7880913 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2296,7 +2296,7 @@ void SmRootSymbolNode::AdaptToY(const OutputDevice &rDev, sal_uLong nHeight)
 
 void SmDynIntegralSymbolNode::AdaptToY(const OutputDevice &rDev, sal_uLong nHeight)
 {
-    long nFactor = 12L;
+    static const long nFactor = 12L;
 
     // The new height equals (1 + nFactor) * oldHeight
     // nFactor was chosen for keeping the integral sign from becoming too "fat".
commit 8ac30e7c450acf3147454e6cb2a86978f1359c54
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat Apr 4 18:32:03 2015 +0900

    put local functions into an unnamed namespace
    
    Change-Id: I2eb14bfb9a8f634a7fc56f581f5dca7529c5e85d

diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 9f413ee..50638c2 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -1199,8 +1199,7 @@ SmNode * SmBinVerNode::GetLeftMost()
 }
 
 
-/**************************************************************************/
-
+namespace {
 
 /// @return value of the determinant formed by the two points
 double Det(const Point &rHeading1, const Point &rHeading2)
@@ -1266,6 +1265,7 @@ sal_uInt16 GetLineIntersectionPoint(Point &rResult,
     return nRes;
 }
 
+}
 
 
 SmBinDiagonalNode::SmBinDiagonalNode(const SmToken &rNodeToken)


More information about the Libreoffice-commits mailing list