diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-30 22:38:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 13:26:44 +0100 |
commit | 3072f80c53adebe1242f90b16cf4e83064cb4f4f (patch) | |
tree | 266a285ecf25b79c7d56a673071830c30a1bd677 /vcl/source/control/edit.cxx | |
parent | f59c489e642059fc060054222505b544893a3873 (diff) |
automated VclPtrInstance conversion.
Change-Id: I9a1d47202e2794461f6ec44f3e72ee1dd2fde09d
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r-- | vcl/source/control/edit.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 246df6ee6e75..6809481574c4 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -805,7 +805,7 @@ void Edit::ShowTruncationWarning( vcl::Window* pParent ) ResMgr* pResMgr = ImplGetResMgr(); if( pResMgr ) { - ScopedVclPtr<MessageDialog> aBox(new MessageDialog(pParent, ResId(SV_EDIT_WARNING_STR, *pResMgr), VCL_MESSAGE_WARNING)); + ScopedVclPtrInstance< MessageDialog > aBox( pParent, ResId(SV_EDIT_WARNING_STR, *pResMgr), VCL_MESSAGE_WARNING ); aBox->Execute(); } } @@ -2784,7 +2784,7 @@ Size Edit::CalcMinimumSize() const Size Edit::GetMinimumEditSize() { vcl::Window* pDefWin = ImplGetDefaultWindow(); - ScopedVclPtr<Edit> aEdit(new Edit( pDefWin, WB_BORDER ) ); + ScopedVclPtrInstance< Edit > aEdit( pDefWin, WB_BORDER ); Size aSize( aEdit->CalcMinimumSize() ); return aSize; } |