summaryrefslogtreecommitdiff
path: root/starmath/source/mathmlimport.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2018-01-18 18:20:12 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2018-01-22 06:26:00 +0100
commitf3d1b2e58c39618d99bf017702ef19f373464b34 (patch)
treeeee2d5e21b1bfe7fde0732e22f47ce02501b7b97 /starmath/source/mathmlimport.cxx
parentf1d1eb2c647af7b751b024faef09e01d849aacbb (diff)
starmath: Make SmParser::Parse() return std::unique_ptr
Change-Id: I6c8811f71ab40398043cdcfa3334eee4381b4c7e Reviewed-on: https://gerrit.libreoffice.org/48098 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source/mathmlimport.cxx')
-rw-r--r--starmath/source/mathmlimport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 62a705cae930..b22cb0c5387b 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -516,9 +516,9 @@ void SmXMLImport::endDocument()
SmParser &rParser = pDocShell->GetParser();
bool bVal = rParser.IsImportSymbolNames();
rParser.SetImportSymbolNames( true );
- SmNode *pTmpTree = rParser.Parse( aText );
+ auto pTmpTree = rParser.Parse( aText );
aText = rParser.GetText();
- delete pTmpTree;
+ pTmpTree.reset();
rParser.SetImportSymbolNames( bVal );
pDocShell->SetText( aText );