diff options
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/unocontrolcontainer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index a6278272a938..fe396930d6c4 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -267,7 +267,7 @@ UnoControlHolderList::ControlIdentifier UnoControlHolderList::impl_addControl( c OUString sName = _pName ? *_pName : impl_getFreeName_throw(); sal_Int32 nId = impl_getFreeIdentifier_throw(); - maControls[ nId ] = ControlInfo( new UnoControlHolder( sName, _rxControl ) ); + maControls[ nId ] = std::make_shared<UnoControlHolder>( sName, _rxControl ); return nId; } |