diff options
Diffstat (limited to 'sd/source/ui/sidebar/AllMasterPagesSelector.cxx')
-rw-r--r-- | sd/source/ui/sidebar/AllMasterPagesSelector.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/sidebar/AllMasterPagesSelector.cxx b/sd/source/ui/sidebar/AllMasterPagesSelector.cxx index 07284b20961a..21fbff298633 100644 --- a/sd/source/ui/sidebar/AllMasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/AllMasterPagesSelector.cxx @@ -74,8 +74,8 @@ public: SortedMasterPageDescriptorList() {} }; -VclPtr<PanelLayout> AllMasterPagesSelector::Create ( - vcl::Window* pParent, +std::unique_ptr<PanelLayout> AllMasterPagesSelector::Create ( + weld::Widget* pParent, ViewShellBase& rViewShellBase, const css::uno::Reference<css::ui::XSidebar>& rxSidebar) { @@ -85,20 +85,20 @@ VclPtr<PanelLayout> AllMasterPagesSelector::Create ( auto pContainer = std::make_shared<MasterPageContainer>(); - VclPtrInstance<AllMasterPagesSelector> pSelector( + auto xSelector(std::make_unique<AllMasterPagesSelector>( pParent, *pDocument, rViewShellBase, pContainer, - rxSidebar); - pSelector->LateInit(); - pSelector->SetHelpId(HID_SD_TASK_PANE_PREVIEW_ALL); + rxSidebar)); + xSelector->LateInit(); + xSelector->SetHelpId(HID_SD_TASK_PANE_PREVIEW_ALL); - return pSelector; + return xSelector; } AllMasterPagesSelector::AllMasterPagesSelector ( - vcl::Window* pParent, + weld::Widget* pParent, SdDrawDocument& rDocument, ViewShellBase& rBase, const std::shared_ptr<MasterPageContainer>& rpContainer, |