diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-06-08 16:31:30 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-06-10 03:34:52 +0000 |
commit | 1fc4af8695ae0ffb7590198e0d3791a19084a99b (patch) | |
tree | 0cedadd93b6b2efc4bfe5a02652c6ad6a94003fe /starmath/inc | |
parent | d18f46c0aefda2f60a137d7ede1223d8667075f1 (diff) |
Pass it by const ref
Change-Id: I0c2b48a503e2501210af690f02858dade994a733
Reviewed-on: https://gerrit.libreoffice.org/26048
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/cursor.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index 9554fc7ea5c8..cd36b4ee5a97 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -306,9 +306,9 @@ private: /** Clone list of nodes in a clipboard (creates a deep clone) */ static SmNodeList* CloneList(SmClipboard &rClipboard); - /** Find an iterator pointing to the node in pLineList following aCaretPos + /** Find an iterator pointing to the node in pLineList following rCaretPos * - * If aCaretPos::pSelectedNode cannot be found it is assumed that it's in front of pLineList, + * If rCaretPos.pSelectedNode cannot be found it is assumed that it's in front of pLineList, * thus not an element in pLineList. In this case this method returns an iterator to the * first element in pLineList. * @@ -316,7 +316,8 @@ private: * reason you should beaware that iterators to elements in pLineList may be invalidated, and * that you should call PatchLineList() with this iterator if no action is taken. */ - static SmNodeList::iterator FindPositionInLineList(SmNodeList* pLineList, SmCaretPos aCaretPos); + static SmNodeList::iterator FindPositionInLineList(SmNodeList* pLineList, + const SmCaretPos& rCaretPos); /** Patch a line list after modification, merge SmTextNode, remove SmPlaceNode etc. * |