loplugin:virtualdead unused param in SwFlowFrame::ShouldBwdMoved
Change-Id: Ife69fe8c9023682278c02d037d35d15bd015f127 Reviewed-on: https://gerrit.libreoffice.org/81014 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
2785ea58db
commit
2ac038e2b3
@ -325,9 +325,6 @@ sw/inc/swcrsr.hxx:161
|
||||
sw/source/core/access/acccontext.hxx:348
|
||||
_Bool SwAccessibleContext::SetSelectedState(_Bool,)
|
||||
0
|
||||
sw/source/core/inc/flowfrm.hxx:145
|
||||
_Bool SwFlowFrame::ShouldBwdMoved(class SwLayoutFrame *,_Bool,_Bool &,)
|
||||
101
|
||||
sw/source/core/inc/txmsrt.hxx:145
|
||||
void SwTOXSortTabBase::FillText(class SwTextNode &,const class SwIndex &,unsigned short,const class SwRootFrame *const,)const
|
||||
1100
|
||||
|
@ -49,7 +49,7 @@ class SAL_DLLPUBLIC_RTTI SwContentFrame: public SwFrame, public SwFlowFrame
|
||||
void UpdateAttr_( const SfxPoolItem*, const SfxPoolItem*, sal_uInt8 &,
|
||||
SwAttrSetChg *pa = nullptr, SwAttrSetChg *pb = nullptr );
|
||||
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool, bool& ) override;
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool& ) override;
|
||||
|
||||
const SwContentFrame* ImplGetNextContentFrame( bool bFwd ) const;
|
||||
|
||||
|
@ -142,7 +142,7 @@ protected:
|
||||
bool CheckMoveFwd( bool& rbMakePage, bool bKeep, bool bIgnoreMyOwnKeepValue );
|
||||
bool MoveFwd( bool bMakePage, bool bPageBreak, bool bMoveAlways = false );
|
||||
bool MoveBwd( bool &rbReformat );
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool bHead, bool &rReformat )=0;
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool &rReformat )=0;
|
||||
|
||||
public:
|
||||
SwFlowFrame( SwFrame &rFrame );
|
||||
|
@ -58,7 +58,7 @@ class SwSectionFrame: public SwLayoutFrame, public SwFlowFrame
|
||||
|
||||
protected:
|
||||
virtual void MakeAll(vcl::RenderContext* pRenderContext) override;
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool bHead, bool &rReformat ) override;
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool &rReformat ) override;
|
||||
virtual void Format( vcl::RenderContext* pRenderContext, const SwBorderAttrs *pAttrs = nullptr ) override;
|
||||
virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ) override;
|
||||
virtual void SwClientNotify( const SwModify&, const SfxHint& ) override;
|
||||
|
@ -100,7 +100,7 @@ class SwTabFrame: public SwLayoutFrame, public SwFlowFrame
|
||||
SwAttrSetChg *pa = nullptr,
|
||||
SwAttrSetChg *pb = nullptr );
|
||||
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool bHead, bool &rReformat ) override;
|
||||
virtual bool ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool &rReformat ) override;
|
||||
|
||||
virtual void DestroyImpl() override;
|
||||
virtual ~SwTabFrame() override;
|
||||
|
@ -50,7 +50,7 @@
|
||||
// Move methods
|
||||
|
||||
/// Return value tells whether the Frame should be moved.
|
||||
bool SwContentFrame::ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool, bool & )
|
||||
bool SwContentFrame::ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool & )
|
||||
{
|
||||
if ( SwFlowFrame::IsMoveBwdJump() || !IsPrevObjMove() )
|
||||
{
|
||||
|
@ -2379,7 +2379,7 @@ bool SwFlowFrame::MoveBwd( bool &rbReformat )
|
||||
pNewUpper = nullptr;
|
||||
}
|
||||
}
|
||||
if ( pNewUpper && !ShouldBwdMoved( pNewUpper, true, rbReformat ) )
|
||||
if ( pNewUpper && !ShouldBwdMoved( pNewUpper, rbReformat ) )
|
||||
{
|
||||
if( !pNewUpper->Lower() )
|
||||
{
|
||||
|
@ -853,7 +853,7 @@ void SwSectionFrame::MakeAll(vcl::RenderContext* pRenderContext)
|
||||
DelEmpty( false );
|
||||
}
|
||||
|
||||
bool SwSectionFrame::ShouldBwdMoved( SwLayoutFrame *, bool , bool & )
|
||||
bool SwSectionFrame::ShouldBwdMoved( SwLayoutFrame *, bool & )
|
||||
{
|
||||
OSL_FAIL( "Oops, where is my tinfoil hat?" );
|
||||
return false;
|
||||
|
@ -2053,7 +2053,7 @@ void SwTabFrame::MakeAll(vcl::RenderContext* pRenderContext)
|
||||
{
|
||||
SwTabFrame *pMaster = FindMaster();
|
||||
bool bDummy;
|
||||
if ( ShouldBwdMoved( pMaster->GetUpper(), false, bDummy ) )
|
||||
if ( ShouldBwdMoved( pMaster->GetUpper(), bDummy ) )
|
||||
pMaster->InvalidatePos();
|
||||
}
|
||||
}
|
||||
@ -2143,7 +2143,7 @@ void SwTabFrame::MakeAll(vcl::RenderContext* pRenderContext)
|
||||
if ( !bSplit && GetFollow() )
|
||||
{
|
||||
bool bDummy;
|
||||
if ( GetFollow()->ShouldBwdMoved( GetUpper(), false, bDummy ) )
|
||||
if ( GetFollow()->ShouldBwdMoved( GetUpper(), bDummy ) )
|
||||
{
|
||||
SwFrame *pTmp = GetUpper();
|
||||
SwTwips nDeadLine = aRectFnSet.GetPrtBottom(*pTmp);
|
||||
@ -3418,7 +3418,7 @@ SwContentFrame *SwTabFrame::FindLastContent()
|
||||
}
|
||||
|
||||
/// Return value defines if the frm needs to be relocated
|
||||
bool SwTabFrame::ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool, bool &rReformat )
|
||||
bool SwTabFrame::ShouldBwdMoved( SwLayoutFrame *pNewUpper, bool &rReformat )
|
||||
{
|
||||
rReformat = false;
|
||||
if ( SwFlowFrame::IsMoveBwdJump() || !IsPrevObjMove() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user