diff options
Diffstat (limited to 'fpicker/source/office/OfficeFilePicker.cxx')
-rw-r--r-- | fpicker/source/office/OfficeFilePicker.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx index f9d755ac4fcc..6fd28edfd242 100644 --- a/fpicker/source/office/OfficeFilePicker.cxx +++ b/fpicker/source/office/OfficeFilePicker.cxx @@ -463,12 +463,12 @@ sal_Int16 SvtFilePicker::implExecutePicker( ) } -SvtFileDialog* SvtFilePicker::implCreateDialog( vcl::Window* _pParent ) +VclPtr<SvtFileDialog> SvtFilePicker::implCreateDialog( vcl::Window* _pParent ) { WinBits nExtraBits; WinBits nBits = getWinBits( nExtraBits ); - SvtFileDialog* dialog = new SvtFileDialog( _pParent, nBits, nExtraBits ); + VclPtrInstance<SvtFileDialog> dialog( _pParent, nBits, nExtraBits ); // Set StandardDir if present if ( !m_aStandardDir.isEmpty()) |