sd/source/ui/inc/drawview.hxx | 1 - sd/source/ui/view/drawview.cxx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-)
New commits: commit 010551e5c1277ed32e8b279660c27490bace0767 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu May 30 14:27:52 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu May 30 22:53:38 2024 +0200 sd: drop mpDocShell from DrawView ::sd::View already has mpDocSh Change-Id: I77af258115fad54aab6120f0dbbaa72a1faa71a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168261 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sd/source/ui/inc/drawview.hxx b/sd/source/ui/inc/drawview.hxx index d5790c42458b..37d8f79f4c7c 100644 --- a/sd/source/ui/inc/drawview.hxx +++ b/sd/source/ui/inc/drawview.hxx @@ -61,7 +61,6 @@ protected: virtual void ModelHasChanged() override; private: - DrawDocShell* mpDocShell; DrawViewShell* mpDrawViewShell; sal_uInt16 mnPOCHSmph; ///< for blocking PageOrderChangedHint diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx index 7d6a492146ff..6880f83e2cd0 100644 --- a/sd/source/ui/view/drawview.cxx +++ b/sd/source/ui/view/drawview.cxx @@ -62,7 +62,6 @@ DrawView::DrawView( OutputDevice* pOutDev, DrawViewShell* pShell) : ::sd::View(*pDocSh->GetDoc(), pOutDev, pShell) - ,mpDocShell(pDocSh) ,mpDrawViewShell(pShell) ,mnPOCHSmph(0) { @@ -491,7 +490,7 @@ bool DrawView::SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAtt void DrawView::CompleteRedraw(OutputDevice* pOutDev, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector /*=0*/) { - SdDrawDocument* pDoc = mpDocShell->GetDoc(); + SdDrawDocument* pDoc = GetDocSh()->GetDoc(); if( pDoc && pDoc->GetDocumentType() == DocumentType::Impress) { rtl::Reference< sd::SlideShow > xSlideshow( SlideShow::GetSlideShow( pDoc ) );