diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-04-17 12:10:27 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-17 12:14:28 +0100 |
commit | 0a497cb52a2ffecd94178eed296ba8ae7f526358 (patch) | |
tree | 9ca24fc64bc20085dc8f055114b67736cd08119b /extensions/source/abpilot | |
parent | 0703fc22519b391cece54f9d67012cffd9867765 (diff) |
Use VclPtr for OGenericUnoDialog::createDialog.
Change-Id: I0c2040889931a4700735339c5252f8d5fee234ff
Diffstat (limited to 'extensions/source/abpilot')
-rw-r--r-- | extensions/source/abpilot/unodialogabp.cxx | 4 | ||||
-rw-r--r-- | extensions/source/abpilot/unodialogabp.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/abpilot/unodialogabp.cxx b/extensions/source/abpilot/unodialogabp.cxx index 8a0714eb17be..f21ac3198be3 100644 --- a/extensions/source/abpilot/unodialogabp.cxx +++ b/extensions/source/abpilot/unodialogabp.cxx @@ -152,9 +152,9 @@ namespace abp } - Dialog* OABSPilotUno::createDialog(vcl::Window* _pParent) + VclPtr<Dialog> OABSPilotUno::createDialog(vcl::Window* _pParent) { - return new OAddessBookSourcePilot(_pParent, m_aContext ); + return VclPtr<OAddessBookSourcePilot>::Create(_pParent, m_aContext ); } diff --git a/extensions/source/abpilot/unodialogabp.hxx b/extensions/source/abpilot/unodialogabp.hxx index ff58b6e9a456..2f07630094de 100644 --- a/extensions/source/abpilot/unodialogabp.hxx +++ b/extensions/source/abpilot/unodialogabp.hxx @@ -84,7 +84,7 @@ namespace abp using OABSPilotUno_DBase::execute; protected: // OGenericUnoDialog overridables - virtual Dialog* createDialog(vcl::Window* _pParent) SAL_OVERRIDE; + virtual VclPtr<Dialog> createDialog(vcl::Window* _pParent) SAL_OVERRIDE; virtual void executedDialog(sal_Int16 _nExecutionResult) SAL_OVERRIDE; }; |