i18npool/source/textconversion/textconversion_ko.cxx |    6 +++---
 linguistic/source/hhconvdic.cxx                      |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit a759dcce07889e5381d31dea05c2dffd2ac6f506
Author:     kkasliwal <kkasli...@hawk.iit.edu>
AuthorDate: Sat Dec 21 09:48:46 2024 -0600
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Tue Dec 31 12:21:27 2024 +0100

    tdf#145614 convert #define to constexpr for scripts
    
    Change-Id: If549a027389746408e378f81d7334924a3d471b5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179083
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/i18npool/source/textconversion/textconversion_ko.cxx 
b/i18npool/source/textconversion/textconversion_ko.cxx
index 19a4f07de2f9..2e77df454bc2 100644
--- a/i18npool/source/textconversion/textconversion_ko.cxx
+++ b/i18npool/source/textconversion/textconversion_ko.cxx
@@ -37,9 +37,9 @@ using namespace com::sun::star::uno;
 
 namespace i18npool {
 
-#define SCRIPT_OTHERS   0
-#define SCRIPT_HANJA    1
-#define SCRIPT_HANGUL   2
+constexpr sal_Int16 SCRIPT_OTHERS = 0;
+constexpr sal_Int16 SCRIPT_HANJA  = 1;
+constexpr sal_Int16 SCRIPT_HANGUL = 2;
 
 TextConversion_ko::TextConversion_ko( const Reference < XComponentContext >& 
xContext )
     : TextConversionService("com.sun.star.i18n.TextConversion_ko")
diff --git a/linguistic/source/hhconvdic.cxx b/linguistic/source/hhconvdic.cxx
index 23df18e0269a..cfdad37ff444 100644
--- a/linguistic/source/hhconvdic.cxx
+++ b/linguistic/source/hhconvdic.cxx
@@ -42,9 +42,9 @@ constexpr OUString SN_HH_CONV_DICTIONARY = 
u"com.sun.star.linguistic2.HangulHanj
 
 
 
-#define SCRIPT_OTHERS   0
-#define SCRIPT_HANJA    1
-#define SCRIPT_HANGUL   2
+constexpr sal_Int16 SCRIPT_OTHERS = 0;
+constexpr sal_Int16 SCRIPT_HANJA  = 1;
+constexpr sal_Int16 SCRIPT_HANGUL = 2;
 
 // from i18npool/source/textconversion/textconversion_ko.cxx
 /// @throws RuntimeException

Reply via email to