summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-09-21 13:47:08 +0300
committerخالد حسني <khaled@libreoffice.org>2023-09-21 16:40:30 +0200
commitd31cc3545ba05d5a45d38d8e72c2428af91cb784 (patch)
tree1e3adcdda791a30da09bc2a059820781988b1568 /starmath
parent899522378bfb754af757c1a4a0f6bce699ac8721 (diff)
starmath: No need for the OUString copy here
Change-Id: I71e6fd6ff9f5420899ece59b97b81b5e837f919b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157142 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/symbol.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/symbol.cxx b/starmath/source/symbol.cxx
index b4309dad586f..4bb854f1236f 100644
--- a/starmath/source/symbol.cxx
+++ b/starmath/source/symbol.cxx
@@ -140,12 +140,11 @@ SmSym *SmSymbolManager::GetSymbolByUiName(std::u16string_view rSymbolName)
SmSym* SmSymbolManager::GetSymbolByExportName(std::u16string_view rSymbolName)
{
- OUString aSymbolName(rSymbolName);
SmSym* pRes = nullptr;
for (auto& rPair : m_aSymbols)
{
SmSym& rSymbol = rPair.second;
- if (rSymbol.GetExportName() == aSymbolName)
+ if (rSymbol.GetExportName() == rSymbolName)
{
pRes = &rSymbol;
break;