diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-21 08:32:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-21 12:31:34 +0200 |
commit | 052a6c9e5e2c5e4a4d1e3b3d91ca6464939ebbab (patch) | |
tree | 68a4fb4ea3ba98399816bb6aff9cfd9dd8b33272 /starmath | |
parent | e59c9be85f8d00dc64c80e21dee91304fe232be2 (diff) |
elide OUString allocation
Change-Id: I45cc3b8df0c29237b69cab87f0fbb6853776394f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134701
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathml/mathmlexport.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/starmath/source/mathml/mathmlexport.cxx b/starmath/source/mathml/mathmlexport.cxx index 64640ae0d96a..619082bd3758 100644 --- a/starmath/source/mathml/mathmlexport.cxx +++ b/starmath/source/mathml/mathmlexport.cxx @@ -544,8 +544,10 @@ void SmXMLExport::GetConfigurationSettings(Sequence<PropertyValue>& rProps) aRet.Name = prop.Name; OUString aActualName(prop.Name); // handle 'save used symbols only' + static constexpr OUStringLiteral sUserDefinedSymbolsInUse + = u"UserDefinedSymbolsInUse"; if (bUsedSymbolsOnly && prop.Name == "Symbols") - aActualName = "UserDefinedSymbolsInUse"; + aActualName = sUserDefinedSymbolsInUse; aRet.Value = xProps->getPropertyValue(aActualName); } return aRet; |