sw/source/uibase/docvw/edtwin.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 1ab04b964122897ea4d3d0470dde1379955d7bbb Author: Devashish Gupta <ashishkrgupta.haji...@gmail.com> AuthorDate: Thu Mar 27 01:15:09 2025 +0530 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Mon Mar 31 10:30:47 2025 +0200 tdf#145614 - Convert #define to constexpr Change-Id: Ia213981f353b16f2c3d5097eed1c08c55533902e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183354 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index e1655da968eb..7a5938f172e1 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -306,11 +306,11 @@ struct QuickHelpData void SortAndFilter(const OUString &rOrigWord); }; -/** - * Avoid minimal movement shiver - */ -#define HIT_PIX 2 /* hit tolerance in pixel */ -#define MIN_MOVE 4 + +// Minimise jitter + +constexpr auto HIT_PIX = 2; // Hit tolerance in pixels +constexpr auto MIN_MOVE = 4; static bool IsMinMove(const Point &rStartPos, const Point &rLPt) {