summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-18 14:10:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-18 18:02:19 +0200
commitdfa53b3a69dda7eafc1c3573d5d20cd1b29c77c0 (patch)
treeed26621197ff53595eb86766f09d277bc1ed462b /editeng
parent52112a1b8c778bf94534537978a36ba82d7cdf6c (diff)
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>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/numitem.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index f6d70cf723ac..cbbd7efb9dc4 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -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