diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-29 09:39:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-29 09:53:52 +0100 |
commit | a1dd2f55f24da4fa875a92eebf05c154528e1d74 (patch) | |
tree | ecd10e6aad8e1ac8e1691ae4fa0a40cfbdec8ff6 | |
parent | 8ee49e6e8f5c37682d776fac4bc01479733b9d76 (diff) |
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.grandin@collabora.co.uk>
-rw-r--r-- | sw/inc/fesh.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/frmedt/feshview.cxx | 4 |
2 files changed, 2 insertions, 4 deletions
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 ) |