tools/source/generic/poly.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
New commits: commit 9b5f0234da27a674a939941d89975bc5a365f7ae Author: ehsan <m.ehsan.movahed...@gmail.com> AuthorDate: Sun Jul 10 19:05:56 2022 +0430 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Sat Aug 13 12:09:17 2022 +0200 tdf#145614 Convert #define to constexpr Change-Id: If783e2fbb65cae8e9c79ad9718f344dedf9dfe4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135074 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> 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 )