diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-18 12:14:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-24 11:34:21 +0200 |
commit | e2080e70fe8b085f18e868e46340454720fa94ca (patch) | |
tree | 4038d1d57b41b68a47d5ebbbe6ad390648ec6303 /sw/source/core/text/itradj.cxx | |
parent | f910280b8704ed9c289150a4ca3c8d60e15d0d97 (diff) |
new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
class A {
struct X x;
public X* getX() { return &x; }
}
which can be:
public X& getX() { return x; }
Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
Diffstat (limited to 'sw/source/core/text/itradj.cxx')
-rw-r--r-- | sw/source/core/text/itradj.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/itradj.cxx b/sw/source/core/text/itradj.cxx index 24e71116f116..b2ad8a232166 100644 --- a/sw/source/core/text/itradj.cxx +++ b/sw/source/core/text/itradj.cxx @@ -106,7 +106,7 @@ void SwTxtAdjuster::FormatBlock( ) GetInfo().SetIdx( nStart ); CalcNewBlock( pCurr, pFly ); GetInfo().SetIdx( nOldIdx ); - GetInfo().GetParaPortion()->GetRepaint()->SetOfst(0); + GetInfo().GetParaPortion()->GetRepaint().SetOfst(0); } static bool lcl_CheckKashidaPositions( SwScriptInfo& rSI, SwTxtSizeInfo& rInf, SwTxtIter& rItr, @@ -677,7 +677,7 @@ void SwTxtAdjuster::CalcAdjLine( SwLineLayout *pCurrent ) case SVX_ADJUST_CENTER: { CalcFlyAdjust( pCurrent ); - pPara->GetRepaint()->SetOfst( 0 ); + pPara->GetRepaint().SetOfst( 0 ); break; } case SVX_ADJUST_BLOCK: @@ -824,7 +824,7 @@ void SwTxtAdjuster::CalcDropAdjust() void SwTxtAdjuster::CalcDropRepaint() { Top(); - SwRepaint &rRepaint = *GetInfo().GetParaPortion()->GetRepaint(); + SwRepaint &rRepaint = GetInfo().GetParaPortion()->GetRepaint(); if( rRepaint.Top() > Y() ) rRepaint.Top( Y() ); for( MSHORT i = 1; i < GetDropLines(); ++i ) |