svl: remove pointless catch around "delete" statement
In C++11 the destructors are implicitly noexcept so if any of the subclasses of SfxUndoAction would have a throwing dtor we would have found out by now. Change-Id: I4e044f8c2c391464cdc236bac15465860fa0ef62
This commit is contained in:
@@ -381,15 +381,8 @@ namespace svl { namespace undo { namespace impl
|
|||||||
{
|
{
|
||||||
SfxUndoAction* pAction = m_aUndoActionsCleanup.front();
|
SfxUndoAction* pAction = m_aUndoActionsCleanup.front();
|
||||||
m_aUndoActionsCleanup.pop_front();
|
m_aUndoActionsCleanup.pop_front();
|
||||||
try
|
|
||||||
{
|
|
||||||
delete pAction;
|
delete pAction;
|
||||||
}
|
}
|
||||||
catch( const Exception& )
|
|
||||||
{
|
|
||||||
DBG_UNHANDLED_EXCEPTION();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle scheduled notification
|
// handle scheduled notification
|
||||||
for ( ::std::list< NotifyUndoListener >::const_iterator notifier = m_notifiers.begin();
|
for ( ::std::list< NotifyUndoListener >::const_iterator notifier = m_notifiers.begin();
|
||||||
|
Reference in New Issue
Block a user