diff options
author | ehsan <m.ehsan.movahedian@gmail.com> | 2022-07-10 19:05:56 +0430 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-08-13 12:09:17 +0200 |
commit | 9b5f0234da27a674a939941d89975bc5a365f7ae (patch) | |
tree | e45af1698bbbf61eb9fdb9b5b274b0ce6691daa6 /tools/source | |
parent | 740d45184fc7d05f8a37186dd619f07f527fa465 (diff) |
tdf#145614 Convert #define to constexpr
Change-Id: If783e2fbb65cae8e9c79ad9718f344dedf9dfe4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135074
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/generic/poly.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 166803b38f04..25f15d5fd00a 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -44,13 +44,13 @@ #include <limits.h> #include <cmath> -#define EDGE_LEFT 1 -#define EDGE_TOP 2 -#define EDGE_RIGHT 4 -#define EDGE_BOTTOM 8 -#define EDGE_HORZ (EDGE_RIGHT | EDGE_LEFT) -#define EDGE_VERT (EDGE_TOP | EDGE_BOTTOM) -#define SMALL_DVALUE 0.0000001 +constexpr int EDGE_LEFT = 1; +constexpr int EDGE_TOP = 2; +constexpr int EDGE_RIGHT = 4; +constexpr int EDGE_BOTTOM = 8; +constexpr int EDGE_HORZ = EDGE_RIGHT | EDGE_LEFT; +constexpr int EDGE_VERT = EDGE_TOP | EDGE_BOTTOM; +constexpr double SMALL_DVALUE = 0.0000001; #define FSQRT2 1.4142135623730950488016887242097 static double ImplGetParameter( const Point& rCenter, const Point& rPt, double fWR, double fHR ) |