Cleanup: auto_ptr uses as a plain scope guard.

This commit is contained in:
Thorsten Behrens 2012-02-15 16:50:59 +01:00
parent c91ff959b0
commit 4fa7f074b3

View file

@ -230,10 +230,7 @@ sal_Bool FuOutlineText::KeyInput(const KeyEvent& rKEvt)
{
mpWindow->GrabFocus();
SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< OutlineViewModelChangeGuard > aGuard;
SAL_WNODEPRECATED_DECLARATIONS_POP
boost::scoped_ptr< OutlineViewModelChangeGuard > aGuard;
if( (nKeyGroup != KEYGROUP_CURSOR) && (nKeyGroup != KEYGROUP_FKEYS) )
aGuard.reset( new OutlineViewModelChangeGuard( *pOutlineView ) );