diff options
-rw-r--r-- | include/sfx2/tabdlg.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx index 6053d22496bb..e6aee128f4bf 100644 --- a/include/sfx2/tabdlg.hxx +++ b/include/sfx2/tabdlg.hxx @@ -78,6 +78,7 @@ private: std::unique_ptr<sal_uInt16[]> m_pRanges; OString m_sAppPageId; bool m_bStandardPushed; + std::unique_ptr<SfxAllItemSet> m_xItemSet; DECL_DLLPRIVATE_LINK(ActivatePageHdl, const OString&, void); DECL_DLLPRIVATE_LINK(DeactivatePageHdl, const OString&, bool); diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 47fa332390db..02c46e96ecb3 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -897,7 +897,8 @@ void SfxTabDialogController::AddTabPage(const OString &rName, const OUString& rR SfxItemSet* SfxTabDialogController::CreateInputItemSet(const OString&) { SAL_WARN( "sfx.dialog", "CreateInputItemSet not implemented" ); - return new SfxAllItemSet(SfxGetpApp()->GetPool()); + m_xItemSet = std::make_unique<SfxAllItemSet>(SfxGetpApp()->GetPool()); + return m_xItemSet.get(); } void SfxTabDialogController::CreatePages() |