diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-02 08:45:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-02 09:49:56 +0200 |
commit | 9c5744adbd97821b5574d55266f8a4e60fd925da (patch) | |
tree | f6318a932216bb25675029e9ac58f280a64c62b5 /sc/source/ui/unoobj/confuno.cxx | |
parent | 559b342a62901754222723ee522f5ae80e4d40f5 (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: I7467f9067085ac89b98a0398811396c448339b4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119840
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj/confuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/confuno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<i18n::XForbiddenCharacters>::get(), beans::PropertyAttribute::READONLY, 0}, {u"" SC_UNO_CHARCOMP, 0, cppu::UnoType<sal_Int16>::get(), 0, 0}, {u"" SC_UNO_ASIANKERN, 0, cppu::UnoType<bool>::get(), 0, 0}, - {u"" SCSAVEVERSION, 0, cppu::UnoType<bool>::get(), 0, 0}, + { SCSAVEVERSION, 0, cppu::UnoType<bool>::get(), 0, 0}, {u"" SC_UNO_UPDTEMPL, 0, cppu::UnoType<bool>::get(), 0, 0}, /*Stampit enable/disable print cancel */ {u"" SC_UNO_ALLOWPRINTJOBCANCEL, 0, cppu::UnoType<bool>::get(), 0, 0}, |