summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorDeep17 <deepoose2011@gmail.com>2022-03-14 00:32:10 -0400
committerHossein <hossein@libreoffice.org>2022-03-18 16:30:29 +0100
commitb3bd864f7c05c3c794b431dea2ec91ad459812e7 (patch)
treeea219af223e70666e47c5cb37b48c1fbd9c60ee4 /editeng
parent0f31597dcc144cbb9c7dead9a6f2154ba1c044e6 (diff)
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 <hossein@libreoffice.org>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/numitem.cxx8
1 files changed, 4 insertions, 4 deletions
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;