diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-02 16:36:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-02 16:49:49 +0200 |
commit | 3e1bd6961d3317fe2bef4a34a41f5d1fc2a33008 (patch) | |
tree | 65d4713a871ec387f4dee42d9a9d9c05a39ae46b /include/sfx2/itemconnect.hxx | |
parent | 0718498999a22c07e595217f0b370b9c39dcc1f2 (diff) |
Replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: Id76eb2af60d7b87228f479aeb4a40373c648ae11
Diffstat (limited to 'include/sfx2/itemconnect.hxx')
-rw-r--r-- | include/sfx2/itemconnect.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sfx2/itemconnect.hxx b/include/sfx2/itemconnect.hxx index 95a545e3dad4..3f73a90e3f30 100644 --- a/include/sfx2/itemconnect.hxx +++ b/include/sfx2/itemconnect.hxx @@ -24,6 +24,8 @@ #include "sfx2/dllapi.h" #include <memory> + +#include <boost/scoped_ptr.hpp> #include <sfx2/itemwrapper.hxx> #include <sfx2/controlwrapper.hxx> @@ -518,7 +520,7 @@ bool ItemControlConnection< ItemWrpT, ControlWrpT >::FillItemSet( if( !pOldItem || !(maItemWrp.GetItemValue( *pOldItem ) == aNewValue) ) { sal_uInt16 nWhich = ItemWrapperHelper::GetWhichId( rDestSet, maItemWrp.GetSlotId() ); - std::auto_ptr< ItemType > xItem( + boost::scoped_ptr< ItemType > xItem( static_cast< ItemType* >( maItemWrp.GetDefaultItem( rDestSet ).Clone() ) ); xItem->SetWhich( nWhich ); maItemWrp.SetItemValue( *xItem, aNewValue ); |