diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-17 15:25:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-19 07:59:11 +0200 |
commit | 0d416965a64f30b811891ba977e58542dcfb2d4f (patch) | |
tree | 639ce75721a8e338aa9651d667edc84307b4fdb4 /sd | |
parent | 0093834e334d87c21e61f66952222368d742bde3 (diff) |
loplugin:virtualdead unused param in sd::View::AcceptDrop
Change-Id: I51aceb8a1f908cf89a0b8b6d0e58755fc4374862
Reviewed-on: https://gerrit.libreoffice.org/81075
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/OutlineView.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/View.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/outlview.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdview2.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/viewshe2.cxx | 6 |
6 files changed, 7 insertions, 11 deletions
diff --git a/sd/source/ui/inc/OutlineView.hxx b/sd/source/ui/inc/OutlineView.hxx index 67d7647b8d5e..4742f67f5bb3 100644 --- a/sd/source/ui/inc/OutlineView.hxx +++ b/sd/source/ui/inc/OutlineView.hxx @@ -123,8 +123,6 @@ public: virtual sal_Int8 AcceptDrop ( const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, - ::sd::Window* pTargetWindow, - sal_uInt16 nPage, SdrLayerID nLayer) override; virtual sal_Int8 ExecuteDrop ( const ExecuteDropEvent& rEvt, diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx index 119c7848424c..5aba1fb326d9 100644 --- a/sd/source/ui/inc/View.hxx +++ b/sd/source/ui/inc/View.hxx @@ -92,8 +92,6 @@ public: virtual sal_Int8 AcceptDrop ( const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, - ::sd::Window* pTargetWindow, - sal_uInt16 nPage, SdrLayerID nLayer); virtual sal_Int8 ExecuteDrop ( const ExecuteDropEvent& rEvt, diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index cf6c62c5bea0..e41f34a19774 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -1282,7 +1282,7 @@ void DrawViewShell::ResetActualLayer() sal_Int8 DrawViewShell::AcceptDrop ( const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, - ::sd::Window* pTargetWindow, + ::sd::Window* /*pTargetWindow*/, sal_uInt16 nPage, SdrLayerID nLayer ) { @@ -1292,7 +1292,7 @@ sal_Int8 DrawViewShell::AcceptDrop ( if( SlideShow::IsRunning( GetViewShellBase() ) ) return DND_ACTION_NONE; - return mpDrawView->AcceptDrop( rEvt, rTargetHelper, pTargetWindow, nPage, nLayer ); + return mpDrawView->AcceptDrop( rEvt, rTargetHelper, nLayer ); } /** diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index 67605076550d..a9b7771074c9 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -1304,7 +1304,7 @@ void OutlineView::ResetLinks() const mrOutliner.SetEndPasteOrDropHdl(Link<PasteOrDropInfos*,void>()); } -sal_Int8 OutlineView::AcceptDrop( const AcceptDropEvent&, DropTargetHelper&, ::sd::Window*, sal_uInt16, SdrLayerID) +sal_Int8 OutlineView::AcceptDrop( const AcceptDropEvent&, DropTargetHelper&, SdrLayerID) { return DND_ACTION_NONE; } diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index da69acdad1a1..ef22fde0f15b 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -421,7 +421,7 @@ void View::DragFinished( sal_Int8 nDropAction ) } sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, - ::sd::Window*, sal_uInt16, SdrLayerID nLayer ) + SdrLayerID nLayer ) { OUString aLayerName = GetActiveLayer(); SdrPageView* pPV = GetSdrPageView(); diff --git a/sd/source/ui/view/viewshe2.cxx b/sd/source/ui/view/viewshe2.cxx index 0341c104db7c..9ce31a6cba29 100644 --- a/sd/source/ui/view/viewshe2.cxx +++ b/sd/source/ui/view/viewshe2.cxx @@ -866,12 +866,12 @@ void ViewShell::SetScrollBarsVisible(bool bVisible) sal_Int8 ViewShell::AcceptDrop ( const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, - ::sd::Window* pTargetWindow, - sal_uInt16 nPage, + ::sd::Window* /*pTargetWindow*/, + sal_uInt16 /*nPage*/, SdrLayerID nLayer) { ::sd::View* pView = GetView(); - return( pView ? pView->AcceptDrop( rEvt, rTargetHelper, pTargetWindow, nPage, nLayer ) : DND_ACTION_NONE ); + return( pView ? pView->AcceptDrop( rEvt, rTargetHelper, nLayer ) : DND_ACTION_NONE ); } sal_Int8 ViewShell::ExecuteDrop ( |