From 9c5744adbd97821b5574d55266f8a4e60fd925da Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 2 Aug 2021 08:45:04 +0200 Subject: 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: I7467f9067085ac89b98a0398811396c448339b4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119840 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/unoobj/confuno.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/unoobj/confuno.cxx') diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx index 6c52c2c3ddf7..d7ead11acdd4 100644 --- a/sc/source/ui/unoobj/confuno.cxx +++ b/sc/source/ui/unoobj/confuno.cxx @@ -45,7 +45,7 @@ using namespace com::sun::star; -#define SCSAVEVERSION "SaveVersionOnClose" +constexpr OUStringLiteral SCSAVEVERSION = u"SaveVersionOnClose"; static const SfxItemPropertyMapEntry* lcl_GetConfigPropertyMap() { @@ -76,7 +76,7 @@ static const SfxItemPropertyMapEntry* lcl_GetConfigPropertyMap() {u"" SC_UNO_FORBIDDEN, 0, cppu::UnoType::get(), beans::PropertyAttribute::READONLY, 0}, {u"" SC_UNO_CHARCOMP, 0, cppu::UnoType::get(), 0, 0}, {u"" SC_UNO_ASIANKERN, 0, cppu::UnoType::get(), 0, 0}, - {u"" SCSAVEVERSION, 0, cppu::UnoType::get(), 0, 0}, + { SCSAVEVERSION, 0, cppu::UnoType::get(), 0, 0}, {u"" SC_UNO_UPDTEMPL, 0, cppu::UnoType::get(), 0, 0}, /*Stampit enable/disable print cancel */ {u"" SC_UNO_ALLOWPRINTJOBCANCEL, 0, cppu::UnoType::get(), 0, 0}, -- cgit