diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2018-01-18 18:20:12 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2018-01-22 06:26:00 +0100 |
commit | f3d1b2e58c39618d99bf017702ef19f373464b34 (patch) | |
tree | eee2d5e21b1bfe7fde0732e22f47ce02501b7b97 /starmath/source/parse.cxx | |
parent | f1d1eb2c647af7b751b024faef09e01d849aacbb (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/parse.cxx')
-rw-r--r-- | starmath/source/parse.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 6d299ce1fee5..7e026673a69a 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -950,7 +950,7 @@ namespace // grammar -SmTableNode *SmParser::DoTable() +std::unique_ptr<SmTableNode> SmParser::DoTable() { DepthProtect aDepthGuard(m_nParseDepth); if (aDepthGuard.TooDeep()) @@ -966,7 +966,7 @@ SmTableNode *SmParser::DoTable() assert(m_aCurToken.eType == TEND); std::unique_ptr<SmTableNode> xSNode(new SmTableNode(m_aCurToken)); xSNode->SetSubNodes(buildNodeArray(aLineArray)); - return xSNode.release(); + return xSNode; } SmNode *SmParser::DoAlign(bool bUseExtraSpaces) @@ -2314,7 +2314,7 @@ SmParser::SmParser() { } -SmTableNode *SmParser::Parse(const OUString &rBuffer) +std::unique_ptr<SmTableNode> SmParser::Parse(const OUString &rBuffer) { m_aUsedSymbols.clear(); |