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:
parent
52112a1b8c
commit
dfa53b3a69
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue