From 85b01322b6384ae13818c22659b99bfcc94e06fe Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 17 Apr 2015 13:51:33 +0100 Subject: Fix SfxTabPage creation to use VclPtr. Change-Id: Ia0e8b666daec7b5eaba119c758b9ca1ec8276128 --- sc/source/ui/attrdlg/tabpages.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/attrdlg/tabpages.cxx') diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx index 83590dc9a338..18f9e1ee4eee 100644 --- a/sc/source/ui/attrdlg/tabpages.cxx +++ b/sc/source/ui/attrdlg/tabpages.cxx @@ -73,9 +73,9 @@ void ScTabPageProtection::dispose() SfxTabPage::dispose(); } -SfxTabPage* ScTabPageProtection::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) +VclPtr ScTabPageProtection::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return ( new ScTabPageProtection( pParent, *rAttrSet ) ); + return VclPtr( new ScTabPageProtection( pParent, *rAttrSet ), SAL_NO_ACQUIRE ); } void ScTabPageProtection::Reset( const SfxItemSet* rCoreAttrs ) -- cgit