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 <xiscofauli@libreoffice.org>
diff --git a/sd/source/ui/inc/drawview.hxx b/sd/source/ui/inc/drawview.hxx
index d5790c4..37d8f79 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 7d6a492..6880f83 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 ) );