From 1d2773807f6d2deb1181ef4b14fbdd49ca1d5c14 Mon Sep 17 00:00:00 2001 From: Noel Date: Fri, 5 Mar 2021 10:47:16 +0200 Subject: ref-count SdrPage which simplifies ownership handling, particularly with regard to undo/redo Change-Id: Ie8f300ebfdae6db3c06f78a87e35a07497d6b825 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111991 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/inc/dpage.hxx | 2 +- sw/inc/drawdoc.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/inc') diff --git a/sw/inc/dpage.hxx b/sw/inc/dpage.hxx index f144663ebac9..2f06a9c8d0fc 100644 --- a/sw/inc/dpage.hxx +++ b/sw/inc/dpage.hxx @@ -39,7 +39,7 @@ public: explicit SwDPage(SwDrawModel& rNewModel, bool bMasterPage); virtual ~SwDPage() override; - virtual SwDPage* CloneSdrPage(SdrModel& rTargetModel) const override; + virtual rtl::Reference CloneSdrPage(SdrModel& rTargetModel) const override; // #i3694# // This GetOffset() method is not needed anymore, it even leads to errors. diff --git a/sw/inc/drawdoc.hxx b/sw/inc/drawdoc.hxx index 05762bb577ae..d80be90bc220 100644 --- a/sw/inc/drawdoc.hxx +++ b/sw/inc/drawdoc.hxx @@ -37,7 +37,7 @@ public: /// Put needed items for XPropertyList entries from the DrawModel. void PutAreaListItems(SfxItemSet& rSet) const; - virtual SdrPage* AllocPage(bool bMasterPage) override; + virtual rtl::Reference AllocPage(bool bMasterPage) override; virtual css::uno::Reference GetDocumentStorage() const override; -- cgit