From 15ff0c3828406aa00d8fa0d1e7de90916f9c13cc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 9 Dec 2023 21:30:30 +0000 Subject: cid#1545975 COPY_INSTEAD_OF_MOVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1545955 COPY_INSTEAD_OF_MOVE cid#1545954 COPY_INSTEAD_OF_MOVE cid#1545952 COPY_INSTEAD_OF_MOVE cid#1545948 COPY_INSTEAD_OF_MOVE cid#1545943 COPY_INSTEAD_OF_MOVE cid#1545935 COPY_INSTEAD_OF_MOVE cid#1545930 COPY_INSTEAD_OF_MOVE cid#1545928 COPY_INSTEAD_OF_MOVE cid#1545925 COPY_INSTEAD_OF_MOVE cid#1545922 COPY_INSTEAD_OF_MOVE Change-Id: I28d830504337f417829c675b1eb9c763b83b30c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160522 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- starmath/source/parse5.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'starmath') diff --git a/starmath/source/parse5.cxx b/starmath/source/parse5.cxx index 8f2815c3c3b4..eea7e7f05edf 100644 --- a/starmath/source/parse5.cxx +++ b/starmath/source/parse5.cxx @@ -2715,12 +2715,10 @@ std::unique_ptr SmParser5::DoError(SmParseError eError) { DepthProtect aDepthGuard(m_nParseDepth); - // Identify error message - OUString sStrBuf(SmResId(RID_ERR_IDENT) + starmathdatabase::getParseErrorDesc(eError)); - // Generate error node m_aCurToken.eType = TERROR; - m_aCurToken.cMathChar = sStrBuf; + // Identify error message + m_aCurToken.cMathChar = SmResId(RID_ERR_IDENT) + starmathdatabase::getParseErrorDesc(eError); auto xSNode = std::make_unique(m_aCurToken); SmErrorNode* pErr(new SmErrorNode(m_aCurToken)); pErr->SetSelection(m_aCurESelection); -- cgit