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 /svx | |
parent | 0703fc22519b391cece54f9d67012cffd9867765 (diff) |
Use VclPtr for OGenericUnoDialog::createDialog.
Change-Id: I0c2040889931a4700735339c5252f8d5fee234ff
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/xfm_addcondition.cxx | 4 | ||||
-rw-r--r-- | svx/source/inc/xfm_addcondition.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/form/xfm_addcondition.cxx b/svx/source/form/xfm_addcondition.cxx index a0da5da65266..3caead135599 100644 --- a/svx/source/form/xfm_addcondition.cxx +++ b/svx/source/form/xfm_addcondition.cxx @@ -145,12 +145,12 @@ namespace svxform } - Dialog* OAddConditionDialog::createDialog(vcl::Window* _pParent) + VclPtr<Dialog> OAddConditionDialog::createDialog(vcl::Window* _pParent) { if ( !m_xBinding.is() || m_sFacetName.isEmpty() ) throw RuntimeException( OUString(), *this ); - return new AddConditionDialog( _pParent, m_sFacetName, m_xBinding ); + return VclPtr<AddConditionDialog>::Create( _pParent, m_sFacetName, m_xBinding ); } diff --git a/svx/source/inc/xfm_addcondition.hxx b/svx/source/inc/xfm_addcondition.hxx index b55a0f3f9a03..c3a4db2cae87 100644 --- a/svx/source/inc/xfm_addcondition.hxx +++ b/svx/source/inc/xfm_addcondition.hxx @@ -67,7 +67,7 @@ namespace svxform 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; }; |