diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-21 07:36:39 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-21 08:23:36 +0200 |
commit | 16231fc68973ec36c7f1e4ba5e6bef7059f9ee25 (patch) | |
tree | c773e0ec2c6f6f72fe38cdf18ab68109ee1b985a /editeng | |
parent | 10dbee56f7cf9a19b04f484b8a4b2465323ec622 (diff) |
Replace these defines with constexpr
Make CH_HYPH OUStringLiteral, because it is converted
to OUString in ImpEditEngine::ImpBreakLine.
Make WRONG_SHOW_MIN tools::Long, to match the type of
nHeight which it is compared to.
Change-Id: I5198da4134f1edf28d47f2fc060af482572f5f89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117430
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index c33db07b2a6b..f4cd34bfdfbc 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -79,9 +79,9 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::linguistic2; -#define CH_HYPH "-" +constexpr OUStringLiteral CH_HYPH = u"-"; -#define WRONG_SHOW_MIN 5 +constexpr tools::Long WRONG_SHOW_MIN = 5; namespace { |