diff options
Diffstat (limited to 'sc/source/ui/attrdlg/tabpages.cxx')
-rw-r--r-- | sc/source/ui/attrdlg/tabpages.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx index 6f6fb3928ed7..68f720b3f88d 100644 --- a/sc/source/ui/attrdlg/tabpages.cxx +++ b/sc/source/ui/attrdlg/tabpages.cxx @@ -55,12 +55,11 @@ ScTabPageProtection::ScTabPageProtection(TabPageParent pParent, const SfxItemSet ScTabPageProtection::~ScTabPageProtection() { - disposeOnce(); } -VclPtr<SfxTabPage> ScTabPageProtection::Create(TabPageParent pParent, const SfxItemSet* rAttrSet) +std::unique_ptr<SfxTabPage> ScTabPageProtection::Create(TabPageParent pParent, const SfxItemSet* rAttrSet) { - return VclPtr<ScTabPageProtection>::Create(pParent, *rAttrSet); + return std::make_unique<ScTabPageProtection>(pParent, *rAttrSet); } void ScTabPageProtection::Reset( const SfxItemSet* rCoreAttrs ) |