diff options
Diffstat (limited to 'basctl/source/dlged/dlgedpage.cxx')
-rw-r--r-- | basctl/source/dlged/dlgedpage.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/dlged/dlgedpage.cxx b/basctl/source/dlged/dlgedpage.cxx index 73241128d447..d422f757868c 100644 --- a/basctl/source/dlged/dlgedpage.cxx +++ b/basctl/source/dlged/dlgedpage.cxx @@ -38,9 +38,9 @@ DlgEdPage::~DlgEdPage() ClearSdrObjList(); } -SdrPage* DlgEdPage::Clone(SdrModel* const pNewModel) const +SdrPage* DlgEdPage::CloneSdrPage(SdrModel& rTargetModel) const { - DlgEdModel& rDlgEdModel(static_cast< DlgEdModel& >(nullptr == pNewModel ? getSdrModelFromSdrPage() : *pNewModel)); + DlgEdModel& rDlgEdModel(static_cast< DlgEdModel& >(rTargetModel)); DlgEdPage* pClonedDlgEdPage( new DlgEdPage( rDlgEdModel, |