summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-02 13:43:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-03 20:30:14 +0200
commit85c116f590f1455a6204ee9fbbf7da9fd855f001 (patch)
treecb85ba68dac0dd558ed0faef084dd588e1905d01 /svx
parent544bc99ba834263a6800c05bbd08df3cca3a6e1a (diff)
replace createFromAscii with OUString literals in svx
Change-Id: I9bb7884048f3cc7ef795f7a79dc566fc8fe77e7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167063 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 71d7726fbc3b..85d38fd0556e 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -3050,13 +3050,13 @@ struct SvxStyleToolBoxControl::Impl
// mapping table from bound items. BE CAREFUL this table must be in the
// same order as the uno commands bound to the slots SID_STYLE_FAMILY1..n
// MAX_FAMILIES must also be correctly set!
-static const char* StyleSlotToStyleCommand[MAX_FAMILIES] =
+constexpr OUString StyleSlotToStyleCommand[MAX_FAMILIES] =
{
- ".uno:CharStyle",
- ".uno:ParaStyle",
- ".uno:FrameStyle",
- ".uno:PageStyle",
- ".uno:TemplateFamily5"
+ u".uno:CharStyle"_ustr,
+ u".uno:ParaStyle"_ustr,
+ u".uno:FrameStyle"_ustr,
+ u".uno:PageStyle"_ustr,
+ u".uno:TemplateFamily5"_ustr
};
SvxStyleToolBoxControl::SvxStyleToolBoxControl()
@@ -3090,7 +3090,7 @@ void SAL_CALL SvxStyleToolBoxControl::initialize(const Sequence<Any>& rArguments
{
m_xBoundItems[i] = new SfxStyleControllerItem_Impl( xDispatchProvider,
SID_STYLE_FAMILY_START + i,
- OUString::createFromAscii( StyleSlotToStyleCommand[i] ),
+ StyleSlotToStyleCommand[i],
*this );
pFamilyState[i] = nullptr;
}