summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-02 08:45:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-02 10:20:55 +0200
commit5f74a9c6b50b5689996ff93c95701eb4fc45b50f (patch)
tree7304cd49c9fad68bc7266042c061ca3478fc243d /sw/source/uibase/sidebar
parent0b5869d9f898ad8533a7c49a135efa739b8c465e (diff)
convert #defines to OUStringLiteral
mostly by doing $ git grep -l '#define.*\"' -- *.cxx | xargs perl -pi -e 's/^#define\s+(\w+)\s+(\".*\")/constexpr OUStringLiteral \1 = u\2;/g' Change-Id: I140932a94914d3870f0d92e11a6ada2b42359e30 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119842 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/sidebar')
-rw-r--r--sw/source/uibase/sidebar/PageMarginControl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/sidebar/PageMarginControl.cxx b/sw/source/uibase/sidebar/PageMarginControl.cxx
index 19da13693b6a..0beedfe2a428 100644
--- a/sw/source/uibase/sidebar/PageMarginControl.cxx
+++ b/sw/source/uibase/sidebar/PageMarginControl.cxx
@@ -43,11 +43,11 @@
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/frame/XFrame.hpp>
-#define SWPAGE_LEFT_GVALUE "Sw_Page_Left"
-#define SWPAGE_RIGHT_GVALUE "Sw_Page_Right"
-#define SWPAGE_TOP_GVALUE "Sw_Page_Top"
-#define SWPAGE_DOWN_GVALUE "Sw_Page_Down"
-#define SWPAGE_MIRROR_GVALUE "Sw_Page_Mirrored"
+constexpr OUStringLiteral SWPAGE_LEFT_GVALUE = u"Sw_Page_Left";
+constexpr OUStringLiteral SWPAGE_RIGHT_GVALUE = u"Sw_Page_Right";
+constexpr OUStringLiteral SWPAGE_TOP_GVALUE = u"Sw_Page_Top";
+constexpr OUStringLiteral SWPAGE_DOWN_GVALUE = u"Sw_Page_Down";
+constexpr OUStringLiteral SWPAGE_MIRROR_GVALUE = u"Sw_Page_Mirrored";
namespace
{