From d6a7f7fe98af19b43d8e82555a10bf1e835d0533 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Mon, 26 Dec 2016 18:41:53 +0900 Subject: starmath: Prefix n to SmCaretPos's Index Change-Id: Ie1647d8143c4c38ebcf5111bffc291c26704c4c0 Reviewed-on: https://gerrit.libreoffice.org/32428 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/inc/caret.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'starmath/inc/caret.hxx') diff --git a/starmath/inc/caret.hxx b/starmath/inc/caret.hxx index 08afcce5bcc1..113ab8fc843e 100644 --- a/starmath/inc/caret.hxx +++ b/starmath/inc/caret.hxx @@ -20,9 +20,10 @@ /** Representation of caret position with an equation */ struct SmCaretPos{ - SmCaretPos(SmNode* selectedNode = nullptr, int iIndex = 0) { - pSelectedNode = selectedNode; - Index = iIndex; + SmCaretPos(SmNode* selectedNode = nullptr, int iIndex = 0) + : pSelectedNode(selectedNode) + , nIndex(iIndex) + { } /** Selected node */ SmNode* pSelectedNode; @@ -36,11 +37,11 @@ struct SmCaretPos{ */ //TODO: Special cases for SmBlankNode is needed //TODO: Consider forgetting about the todo above... As it's really unpleasant. - int Index; + int nIndex; /** True, if this is a valid caret position */ bool IsValid() const { return pSelectedNode != nullptr; } bool operator==(const SmCaretPos &pos) const { - return pos.pSelectedNode == pSelectedNode && Index == pos.Index; + return pos.pSelectedNode == pSelectedNode && nIndex == pos.nIndex; } /** Get the caret position after pNode, regardless of pNode * -- cgit