summaryrefslogtreecommitdiff
path: root/filter/source/svg/svgdialog.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-17 12:10:27 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-17 12:14:28 +0100
commit0a497cb52a2ffecd94178eed296ba8ae7f526358 (patch)
tree9ca24fc64bc20085dc8f055114b67736cd08119b /filter/source/svg/svgdialog.cxx
parent0703fc22519b391cece54f9d67012cffd9867765 (diff)
Use VclPtr for OGenericUnoDialog::createDialog.
Change-Id: I0c2040889931a4700735339c5252f8d5fee234ff
Diffstat (limited to 'filter/source/svg/svgdialog.cxx')
-rw-r--r--filter/source/svg/svgdialog.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/filter/source/svg/svgdialog.cxx b/filter/source/svg/svgdialog.cxx
index 0420570004f2..70318fe0f6a5 100644
--- a/filter/source/svg/svgdialog.cxx
+++ b/filter/source/svg/svgdialog.cxx
@@ -143,11 +143,12 @@ Sequence< OUString > SAL_CALL SVGDialog::getSupportedServiceNames()
-Dialog* SVGDialog::createDialog( vcl::Window* pParent )
+VclPtr<Dialog> SVGDialog::createDialog( vcl::Window* pParent )
{
- return( ( /*KA: *mapResMgr.get() &&*/ mxSrcDoc.is() ) ?
- new ImpSVGDialog( pParent/*KA: , *mapResMgr*/, maFilterData ) :
- NULL );
+ if( mxSrcDoc.is() )
+ return VclPtr<ImpSVGDialog>::Create( pParent, maFilterData );
+ else
+ return VclPtr<Dialog>();
}