summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-03 10:25:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-06 08:26:15 +0200
commit7dafe7d3b61060b8e9469594c86ed49e55874c78 (patch)
treecb0fff5266785f4cf03046a1418df7e46957c121 /xmloff/source/text
parent3c5424629903299c92f27a35bb287bea824fa007 (diff)
replace createFromAscii with OUString literals in MultiPropertySetHelper
Change-Id: I4b4cef2d7afac3963ab9b3f2fda10d11b754fd00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167165 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/txtparae.cxx30
1 files changed, 14 insertions, 16 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index b0671175e547..4bafc7a33640 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -470,12 +470,11 @@ static bool txtparae_bContainsIllegalCharacters = false;
// For the export pass all properties can be queried using a multi property
// set.
-static const char* aParagraphPropertyNamesAuto[] =
+constexpr OUString aParagraphPropertyNamesAuto[] =
{
- "NumberingRules",
- "ParaConditionalStyleName",
- "ParaStyleName",
- nullptr
+ u"NumberingRules"_ustr,
+ u"ParaConditionalStyleName"_ustr,
+ u"ParaStyleName"_ustr
};
namespace {
@@ -489,16 +488,15 @@ enum eParagraphPropertyNamesEnumAuto
}
-static const char* aParagraphPropertyNames[] =
+constexpr OUString aParagraphPropertyNames[] =
{
- "NumberingIsNumber",
- "NumberingStyleName",
- "OutlineLevel",
- "ParaConditionalStyleName",
- "ParaStyleName",
- "TextSection",
- "OutlineContentVisible",
- nullptr
+ u"NumberingIsNumber"_ustr,
+ u"NumberingStyleName"_ustr,
+ u"OutlineLevel"_ustr,
+ u"ParaConditionalStyleName"_ustr,
+ u"ParaStyleName"_ustr,
+ u"TextSection"_ustr,
+ u"OutlineContentVisible"_ustr
};
namespace {
@@ -1830,8 +1828,8 @@ void XMLTextParagraphExport::exportTextContentEnumeration(
Reference<XTextSection> xCurrentTextSection(rBaseSection);
MultiPropertySetHelper aPropSetHelper(
- bAutoStyles ? aParagraphPropertyNamesAuto :
- aParagraphPropertyNames );
+ bAutoStyles ? std::span<const OUString>(aParagraphPropertyNamesAuto) :
+ std::span<const OUString>(aParagraphPropertyNames) );
bool bHoldElement = false;
Reference < XTextContent > xTxtCntnt;