summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg/tpprint.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/optdlg/tpprint.cxx')
-rw-r--r--sc/source/ui/optdlg/tpprint.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpprint.cxx b/sc/source/ui/optdlg/tpprint.cxx
index 1370a0e97b7e..8768b92368f7 100644
--- a/sc/source/ui/optdlg/tpprint.cxx
+++ b/sc/source/ui/optdlg/tpprint.cxx
@@ -52,9 +52,9 @@ void ScTpPrintOptions::dispose()
SfxTabPage::dispose();
}
-SfxTabPage* ScTpPrintOptions::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet )
+VclPtr<SfxTabPage> ScTpPrintOptions::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet )
{
- return new ScTpPrintOptions( pParent, *rAttrSet );
+ return VclPtr<SfxTabPage>(new ScTpPrintOptions( pParent, *rAttrSet ), SAL_NO_ACQUIRE);
}
int ScTpPrintOptions::DeactivatePage( SfxItemSet* pSetP )