diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-04 09:15:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-04 09:16:04 +0100 |
commit | 2b3112b30a8dea8a009c11ddb209e12697f72e32 (patch) | |
tree | 85e7f37499f77f143aee306fd4b967c3cc926432 /sw/source | |
parent | cc7a55450658696009fe01e94632e80bb3785d5b (diff) |
the sole caller is ok with rPoint being modified, so change to non-const arg
Change-Id: I40a24502e2e8ad312e13e0c47ee1fde3118d2251
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/text/porfly.cxx | 9 | ||||
-rw-r--r-- | sw/source/core/text/porfly.hxx | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx index 633c7b599cfc..e38e99ddbd87 100644 --- a/sw/source/core/text/porfly.cxx +++ b/sw/source/core/text/porfly.cxx @@ -414,14 +414,9 @@ void SwFlyCntPortion::SetBase( const SwTextFrame& rFrame, const Point &rBase, } } -void SwFlyCntPortion::GetFlyCursorOfst(const Point &rPoint, SwPosition &rPos, SwCursorMoveState* pCMS) const +void SwFlyCntPortion::GetFlyCursorOfst(Point &rPoint, SwPosition &rPos, SwCursorMoveState* pCMS) const { - // As the FlyCnt are not attached to the side, their GetCursorOfst() will - // not be called. - // In order to reduce management overhead for the layout page, the paragraph - // calls the FlyFrame's GetCursorOfst() only when needed - Point aPoint(rPoint); - GetFlyFrame()->GetCursorOfst(&rPos, aPoint, pCMS); + GetFlyFrame()->GetCursorOfst(&rPos, rPoint, pCMS); } sal_Int32 SwFlyCntPortion::GetCursorOfst( const sal_uInt16 nOfst ) const diff --git a/sw/source/core/text/porfly.hxx b/sw/source/core/text/porfly.hxx index 9204edbcf4d3..129bf39e8b2f 100644 --- a/sw/source/core/text/porfly.hxx +++ b/sw/source/core/text/porfly.hxx @@ -79,7 +79,7 @@ public: long nLnAscent, long nLnDescent, long nFlyAscent, long nFlyDescent, AsCharFlags nFlags ); - void GetFlyCursorOfst(const Point &rPoint, SwPosition& rPos, SwCursorMoveState* pCMS) const; + void GetFlyCursorOfst(Point &rPoint, SwPosition& rPos, SwCursorMoveState* pCMS) const; virtual bool Format( SwTextFormatInfo &rInf ) override; virtual void Paint( const SwTextPaintInfo &rInf ) const override; OUTPUT_OPERATOR_OVERRIDE |