diff options
author | VaibhavMalik4187 <vaibhavmalik2018@gmail.com> | 2022-01-18 19:26:35 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-01-19 06:55:12 +0100 |
commit | 40bab1e31c7865f8c45883b8e4b684c0134b9191 (patch) | |
tree | a27945adbb2c40538a882dd38845251c019fcb33 /basegfx | |
parent | 4a388f5e01ebb5a512931d11e48c4380382239c8 (diff) |
tdf#145614 Convert #define to enum or constexpr
Change-Id: Ib6694ec77c275c9a604abfa7d87df6ab262449b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128250
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/workbench/bezierclip.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/workbench/bezierclip.hxx b/basegfx/source/workbench/bezierclip.hxx index 36d2f89a893f..54cceb414f33 100644 --- a/basegfx/source/workbench/bezierclip.hxx +++ b/basegfx/source/workbench/bezierclip.hxx @@ -73,7 +73,7 @@ template <typename NumType> NumType absval( NumType x ) Polygon2D convexHull( const Polygon2D& rPoly ); // TODO: find proper epsilon here (try std::numeric_limits<NumType>::epsilon()?)! -#define DBL_EPSILON 1.0e-100 +constexpr auto DBL_EPSILON = 1.0e-100; /* little approximate comparisons */ template <typename NumType> bool tolZero( NumType n ) { return fabs(n) < DBL_EPSILON; } |