starmath/source/mathml/mathmlexport.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 052a6c9e5e2c5e4a4d1e3b3d91ca6464939ebbab Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Sat May 21 08:32:14 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat May 21 12:31:34 2022 +0200 elide OUString allocation Change-Id: I45cc3b8df0c29237b69cab87f0fbb6853776394f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134701 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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;