sw/inc/fesh.hxx | 2 +- sw/source/core/frmedt/feshview.cxx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-)
New commits: commit a1dd2f55f24da4fa875a92eebf05c154528e1d74 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Oct 29 09:39:37 2018 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Oct 29 09:53:52 2018 +0100 loplugin:shouldreturnbool return value is ignored by call site, so just drop it Change-Id: Ibba9b6b898d3277a44ccf864ba302d97282bffff Reviewed-on: https://gerrit.libreoffice.org/62494 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx index b9e40d22d7c7..6bf34ba62f2c 100644 --- a/sw/inc/fesh.hxx +++ b/sw/inc/fesh.hxx @@ -337,7 +337,7 @@ public: /// Set size of draw objects. void SetObjRect( const SwRect& rRect ); - long BeginDrag( const Point *pPt, bool bProp ); + void BeginDrag( const Point *pPt, bool bProp ); void Drag ( const Point *pPt, bool bProp ); void EndDrag (); void BreakDrag(); diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index 1a85c3aec296..cc88b7e5bb2f 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -695,7 +695,7 @@ void SwFEShell::StartCropImage() SetDragMode( SdrDragMode::Crop ); } -long SwFEShell::BeginDrag( const Point* pPt, bool bIsShift) +void SwFEShell::BeginDrag( const Point* pPt, bool bIsShift) { SdrView *pView = Imp()->GetDrawView(); if ( pView && pView->AreObjectsMarked() ) @@ -706,9 +706,7 @@ long SwFEShell::BeginDrag( const Point* pPt, bool bIsShift) if (pView->BegDragObj( *pPt, nullptr, pHdl )) pView->GetDragMethod()->SetShiftPressed( bIsShift ); ::FrameNotify( this ); - return 1; } - return 0; } void SwFEShell::Drag( const Point *pPt, bool ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits