summaryrefslogtreecommitdiff
path: root/starmath/inc/node.hxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-05-10 11:51:44 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-05-11 00:58:56 +0000
commitb871a97d35a4160b7403c07bfac10aaa744fbbfd (patch)
treed61ff39deee957245452aec006a0a30d7de32cac /starmath/inc/node.hxx
parent750e39302ee9bc7e2583b8efbca79c25c93d0bff (diff)
starmath: Drop unused non-const variant of GetLeftMost
... resulting in one less const_cast. Change-Id: I3dad339f25524fc22e7a02b08ee7ec01b341e991 Reviewed-on: https://gerrit.libreoffice.org/24810 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc/node.hxx')
-rw-r--r--starmath/inc/node.hxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 48442a2261ea..c6e54198ffb1 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -119,11 +119,7 @@ public:
return const_cast<SmNode *>(this)->GetSubNode(nIndex);
}
- virtual SmNode * GetLeftMost();
- const SmNode * GetLeftMost() const
- {
- return const_cast<SmNode *>(this)->GetLeftMost();
- }
+ virtual const SmNode * GetLeftMost() const;
sal_uInt16 & Flags() { return mnFlags; }
sal_uInt16 & Attributes() { return mnAttributes; }
@@ -661,8 +657,7 @@ public:
{
}
- using SmNode::GetLeftMost;
- virtual SmNode * GetLeftMost() override;
+ virtual const SmNode * GetLeftMost() const override;
virtual void Arrange(OutputDevice &rDev, const SmFormat &rFormat) override;
virtual long GetFormulaBaseline() const override;
@@ -859,8 +854,7 @@ public:
SetNumSubNodes(3);
}
- using SmNode::GetLeftMost;
- virtual SmNode * GetLeftMost() override;
+ virtual const SmNode * GetLeftMost() const override;
virtual void Arrange(OutputDevice &rDev, const SmFormat &rFormat) override;
void CreateTextFromNode(OUString &rText) override;
@@ -1201,8 +1195,7 @@ public:
sal_uInt16 GetNumCols() const {return nNumCols;}
void SetRowCol(sal_uInt16 nMatrixRows, sal_uInt16 nMatrixCols);
- using SmNode::GetLeftMost;
- virtual SmNode * GetLeftMost() override;
+ virtual const SmNode * GetLeftMost() const override;
virtual void Arrange(OutputDevice &rDev, const SmFormat &rFormat) override;
void CreateTextFromNode(OUString &rText) override;