summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorVaibhavMalik4187 <vaibhavmalik2018@gmail.com>2022-01-18 19:26:35 +0530
committerHossein <hossein@libreoffice.org>2022-01-19 06:55:12 +0100
commit40bab1e31c7865f8c45883b8e4b684c0134b9191 (patch)
treea27945adbb2c40538a882dd38845251c019fcb33 /basctl
parent4a388f5e01ebb5a512931d11e48c4380382239c8 (diff)
tdf#145614 Convert #define to enum or constexpr
Change-Id: Ib6694ec77c275c9a604abfa7d87df6ab262449b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128250 Tested-by: Hossein <hossein@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/inc/bastypes.hxx4
-rw-r--r--basctl/source/inc/dlged.hxx5
2 files changed, 4 insertions, 5 deletions
diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx
index e150635befb7..f2e989aeb145 100644
--- a/basctl/source/inc/bastypes.hxx
+++ b/basctl/source/inc/bastypes.hxx
@@ -49,8 +49,8 @@ class Layout;
class ModulWindow;
class DialogWindow;
-#define LINE_SEP_CR 0x0D
-#define LINE_SEP 0x0A
+constexpr auto LINE_SEP_CR = 0x0D;
+constexpr auto LINE_SEP = 0x0A;
// Implementation: baside2b.cxx
sal_Int32 searchEOL( const OUString& rStr, sal_Int32 fromIndex );
diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx
index 82d3a14f605d..9e5147dfcfc2 100644
--- a/basctl/source/inc/dlged.hxx
+++ b/basctl/source/inc/dlged.hxx
@@ -48,9 +48,8 @@ namespace basctl
class DialogWindowLayout;
-#define DLGED_PAGE_WIDTH_MIN 1280
-#define DLGED_PAGE_HEIGHT_MIN 1024
-
+constexpr auto DLGED_PAGE_WIDTH_MIN = 1280;
+constexpr auto DLGED_PAGE_HEIGHT_MIN = 1024;
// DlgEdHint