diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-21 15:38:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-30 11:41:41 +0100 |
commit | 9bdc1118c7b7fe10529b3320daa278f108e8f2c3 (patch) | |
tree | 39b305ec636fed88fa67c7e7f86015b20e1e7135 /starmath/inc | |
parent | 931b1931ec46928e62cced4e81c30d8fb3c619d0 (diff) |
use unique_ptr in SmStructureNode::SetSubNodes
Change-Id: I1dafb03f72a3a662eeae3bb23fb0a8b7ba4e6d95
Reviewed-on: https://gerrit.libreoffice.org/65734
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/node.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 640435a4101e..da67e9bdece6 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -235,7 +235,7 @@ public: using SmNode::GetSubNode; virtual SmNode * GetSubNode(size_t nIndex) override; void ClearSubNodes(); - void SetSubNodes(SmNode *pFirst, SmNode *pSecond, SmNode *pThird = nullptr); + void SetSubNodes(std::unique_ptr<SmNode> pFirst, std::unique_ptr<SmNode> pSecond, std::unique_ptr<SmNode> pThird = nullptr); void SetSubNodes(SmNodeArray&& rNodeArray); virtual void GetAccessibleText( OUStringBuffer &rText ) const override; |