diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-03-22 20:23:52 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2015-03-22 20:30:09 +0900 |
commit | 6ce97778dec8824058e8216e103a517592bca2c1 (patch) | |
tree | 6fb9da6f98aa8d7919966c0006c27a0c558c10a9 /starmath/source | |
parent | c63497472b6b7406a07840ec312ccebe6154bb86 (diff) |
Mark as static
Change-Id: I0047c723518caee631bb629da8127645bf4a1c5f
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/node.cxx | 4 | ||||
-rw-r--r-- | starmath/source/smdetect.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 59eee48943f2..80bba2cf1e54 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 03ca462db359..e00ec08d648a 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 ); |