From 7837447287bb846a255dd42acec888abdad8c4e7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 17 Oct 2019 15:15:32 +0200 Subject: loplugin:virtualdead unused param in sd::ViewShell::UpdatePreview Change-Id: I1ac98096d117e3ae7c2f0be2690acef32b85fbdb Reviewed-on: https://gerrit.libreoffice.org/81073 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/view/outlnvsh.cxx | 2 +- sd/source/ui/view/viewshel.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sd/source/ui/view') diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx index 0c0ca15a4062..87bb5de8a454 100644 --- a/sd/source/ui/view/outlnvsh.cxx +++ b/sd/source/ui/view/outlnvsh.cxx @@ -1545,7 +1545,7 @@ SdPage* OutlineViewShell::GetActualPage() return pOlView->GetActualPage(); } -void OutlineViewShell::UpdatePreview( SdPage* pPage, bool ) +void OutlineViewShell::UpdatePreview( SdPage* pPage ) { const bool bNewPage = pPage != pLastPage; pLastPage = pPage; diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index 45a775aa3375..5df5c54de71e 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -327,7 +327,7 @@ void ViewShell::Activate(bool bIsMDIActivate) GetCurrentFunction()->Activate(); if(!GetDocSh()->IsUIActive()) - UpdatePreview( GetActualPage(), true ); + UpdatePreview( GetActualPage() ); } ReadFrameViewData( mpFrameView ); @@ -1060,7 +1060,7 @@ bool ViewShell::PrepareClose (bool bUI) return bResult; } -void ViewShell::UpdatePreview (SdPage*, bool ) +void ViewShell::UpdatePreview (SdPage*) { // Do nothing. After the actual preview has been removed, // OutlineViewShell::UpdatePreview() is the place where something -- cgit v1.2.3