editeng/source/items/numitem.cxx | 8 ++++---- sal/rtl/digest.cxx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit b3bd864f7c05c3c794b431dea2ec91ad459812e7 Author: Deep17 <deepoose2...@gmail.com> AuthorDate: Mon Mar 14 00:32:10 2022 -0400 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Fri Mar 18 16:30:29 2022 +0100 tdf#145614 Convert #define to enum or constexpr Change-Id: Ie039a828b09aacc68ef2f95f495284d554122940 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131510 Tested-by: Jenkins Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx index c4220c78a4b5..f6d70cf723ac 100644 --- a/editeng/source/items/numitem.cxx +++ b/editeng/source/items/numitem.cxx @@ -53,11 +53,11 @@ #include <i18nlangtag/languagetag.hxx> #include <editeng/legacyitem.hxx> -#define DEF_WRITER_LSPACE 500 //Standard Indentation -#define DEF_DRAW_LSPACE 800 //Standard Indentation +constexpr sal_Int32 DEF_WRITER_LSPACE = 500; //Standard Indentation +constexpr sal_Int32 DEF_DRAW_LSPACE = 800; //Standard Indentation -#define NUMITEM_VERSION_03 0x03 -#define NUMITEM_VERSION_04 0x04 +constexpr sal_uInt16 NUMITEM_VERSION_03 = 0x03; +constexpr sal_uInt16 NUMITEM_VERSION_04 = 0x04; using namespace ::com::sun::star; using namespace ::com::sun::star::lang; diff --git a/sal/rtl/digest.cxx b/sal/rtl/digest.cxx index ed545ae87bb8..d01e82cfcf38 100644 --- a/sal/rtl/digest.cxx +++ b/sal/rtl/digest.cxx @@ -176,8 +176,8 @@ void SAL_CALL rtl_digest_destroy(rtlDigest Digest) SAL_THROW_EXTERN_C() pImpl->m_delete(Digest); } -#define DIGEST_CBLOCK_MD2 16 -#define DIGEST_LBLOCK_MD2 16 +constexpr sal_uInt8 DIGEST_CBLOCK_MD2 = 16; +constexpr sal_uInt8 DIGEST_LBLOCK_MD2 = 16; namespace {