From 283aa103b9aa40ef96b022420fdea69a6fdfe41c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 10 Dec 2023 12:50:43 +0000 Subject: cid#1545177 COPY_INSTEAD_OF_MOVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1545179 COPY_INSTEAD_OF_MOVE cid#1545187 COPY_INSTEAD_OF_MOVE cid#1545188 COPY_INSTEAD_OF_MOVE cid#1545189 COPY_INSTEAD_OF_MOVE cid#1545196 COPY_INSTEAD_OF_MOVE cid#1545197 COPY_INSTEAD_OF_MOVE cid#1545204 COPY_INSTEAD_OF_MOVE cid#1545223 COPY_INSTEAD_OF_MOVE cid#1545236 COPY_INSTEAD_OF_MOVE cid#1545239 COPY_INSTEAD_OF_MOVE cid#1545253 COPY_INSTEAD_OF_MOVE cid#1545274 COPY_INSTEAD_OF_MOVE cid#1545286 COPY_INSTEAD_OF_MOVE cid#1545309 COPY_INSTEAD_OF_MOVE cid#1545311 COPY_INSTEAD_OF_MOVE cid#1545345 COPY_INSTEAD_OF_MOVE cid#1545358 COPY_INSTEAD_OF_MOVE cid#1545361 COPY_INSTEAD_OF_MOVE cid#1545365 COPY_INSTEAD_OF_MOVE cid#1545367 COPY_INSTEAD_OF_MOVE cid#1545372 COPY_INSTEAD_OF_MOVE cid#1545373 COPY_INSTEAD_OF_MOVE cid#1545377 COPY_INSTEAD_OF_MOVE cid#1545392 COPY_INSTEAD_OF_MOVE cid#1545399 COPY_INSTEAD_OF_MOVE cid#1545404 COPY_INSTEAD_OF_MOVE cid#1545408 COPY_INSTEAD_OF_MOVE cid#1545430 COPY_INSTEAD_OF_MOVE cid#1545439 COPY_INSTEAD_OF_MOVE cid#1545449 COPY_INSTEAD_OF_MOVE Change-Id: I3afe836a0bbc8bd70937035e60eb020435e413d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160539 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- starmath/source/document.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'starmath') diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index fc2481f3d2ab..d269f2aeaa1c 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -775,8 +775,7 @@ bool SmDocShell::SaveAs( SfxMedium& rMedium ) if( mpTree ) ArrangeFormula(); - Reference xModel(GetModel()); - SmXMLExportWrapper aEquation(xModel); + SmXMLExportWrapper aEquation(GetModel()); aEquation.SetFlat(false); bRet = aEquation.Export(rMedium); } @@ -797,15 +796,13 @@ bool SmDocShell::ConvertTo( SfxMedium &rMedium ) const OUString& rFltName = pFlt->GetFilterName(); if(rFltName == STAROFFICE_XML) { - Reference xModel(GetModel()); - SmXMLExportWrapper aEquation(xModel); + SmXMLExportWrapper aEquation(GetModel()); aEquation.SetFlat(false); bRet = aEquation.Export(rMedium); } else if(rFltName == MATHML_XML) { - Reference xModel(GetModel()); - SmXMLExportWrapper aEquation(xModel); + SmXMLExportWrapper aEquation(GetModel()); aEquation.SetFlat(true); aEquation.SetUseHTMLMLEntities(true); bRet = aEquation.Export(rMedium); -- cgit