diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-16 12:22:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-18 09:38:28 +0200 |
commit | 9fd7808f79fe48af9d9a4d47561abb9b8c66cbc3 (patch) | |
tree | a16d9aad588e70a34bdfe69fe4e709d3bc99226b /starmath/inc | |
parent | 2caee0fac86165730b676727390dc74852f9663d (diff) |
loplugin:useuniqueptr pass SmNodeList around by std::unique_ptr(2)
Change-Id: I53b7f39ddc150367bc5f9c4a7ee7049d59e9f485
Reviewed-on: https://gerrit.libreoffice.org/59231
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/cursor.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index 4c3e5b3eb0cd..b04b39748829 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -261,7 +261,7 @@ private: void BuildGraph(); /** Insert new nodes in the tree after position */ - void InsertNodes(SmNodeList* pNewNodes); + void InsertNodes(std::unique_ptr<SmNodeList> pNewNodes); /** tries to set position to a specific SmCaretPos * @@ -273,7 +273,7 @@ private: void AnnotateSelection(); /** Clone list of nodes in a clipboard (creates a deep clone) */ - static SmNodeList* CloneList(SmClipboard &rClipboard); + static std::unique_ptr<SmNodeList> CloneList(SmClipboard &rClipboard); /** Find an iterator pointing to the node in pLineList following rCaretPos * |