summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-16 12:22:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-18 09:38:28 +0200
commit9fd7808f79fe48af9d9a4d47561abb9b8c66cbc3 (patch)
treea16d9aad588e70a34bdfe69fe4e709d3bc99226b /starmath/inc
parent2caee0fac86165730b676727390dc74852f9663d (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.hxx4
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
*