diff options
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 ); |