editeng/source/editeng/impedit3.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 16231fc68973ec36c7f1e4ba5e6bef7059f9ee25
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Jun 21 07:36:39 2021 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Jun 21 08:23:36 2021 +0200

    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.kagan...@collabora.com>

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 {
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to