summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-02 15:15:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-04 14:15:59 +0200
commitfaf1c7ee2acac2d092acd899b68adf1da96f61f2 (patch)
tree49413abd3575b1cf78d678f3f586b18e8a0ca71b
parent0ae8de6aeb548d1cb5bbe0071cb2d7e1a279f127 (diff)
replace createFromAscii with OUString literals in SwToolbarConfigItem
Change-Id: Id1a6f3babc1ca63375361c88b8af40d9915d1d2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167112 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sw/source/uibase/config/barcfg.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/uibase/config/barcfg.cxx b/sw/source/uibase/config/barcfg.cxx
index 1f54b05cc113..021b36cb733f 100644
--- a/sw/source/uibase/config/barcfg.cxx
+++ b/sw/source/uibase/config/barcfg.cxx
@@ -91,19 +91,19 @@ void SwToolbarConfigItem::SetTopToolbar(SelectionType nSelType, ToolbarId eBarId
Sequence<OUString> SwToolbarConfigItem::GetPropertyNames()
{
- static const char* aPropNames[] =
+ static constexpr OUString aPropNames[] =
{
- "Selection/Table", // SEL_TYPE_TABLE_TEXT
- "Selection/NumberedList", // SEL_TYPE_LIST_TEXT
- "Selection/NumberedList_InTable", // SEL_TYPE_TABLE_LIST
- "Selection/BezierObject", // SEL_TYPE_BEZIER
- "Selection/Graphic" //SEL_TYPE_GRAPHIC
+ u"Selection/Table"_ustr, // SEL_TYPE_TABLE_TEXT
+ u"Selection/NumberedList"_ustr, // SEL_TYPE_LIST_TEXT
+ u"Selection/NumberedList_InTable"_ustr, // SEL_TYPE_TABLE_LIST
+ u"Selection/BezierObject"_ustr, // SEL_TYPE_BEZIER
+ u"Selection/Graphic"_ustr //SEL_TYPE_GRAPHIC
};
const int nCount = 5;
Sequence<OUString> aNames(nCount);
OUString* pNames = aNames.getArray();
for(int i = 0; i < nCount; i++)
- pNames[i] = OUString::createFromAscii(aPropNames[i]);
+ pNames[i] = aPropNames[i];
return aNames;
}