elide some OUString allocation in SvxNumberType::GetNumStr

Change-Id: Ia552796cfe99e7886f4b716e717643269b570c38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134530
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2022-05-18 14:10:13 +02:00
parent 52112a1b8c
commit dfa53b3a69

View file

@ -133,10 +133,12 @@ OUString SvxNumberType::GetNumStr( sal_Int32 nNo, const css::lang::Locale& rLoca
return OUString('0');
else
{
static constexpr OUStringLiteral sNumberingType = u"NumberingType";
static constexpr OUStringLiteral sValue = u"Value";
Sequence< PropertyValue > aProperties
{
comphelper::makePropertyValue("NumberingType", static_cast<sal_uInt16>(nNumType)),
comphelper::makePropertyValue("Value", nNo)
comphelper::makePropertyValue(sNumberingType, static_cast<sal_uInt16>(nNumType)),
comphelper::makePropertyValue(sValue, nNo)
};
try