summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-07-01 13:20:44 +0200
committerMichael Stahl <mstahl@redhat.com>2016-07-01 13:20:44 +0200
commit59e4bd07211d8509dcb3e89f6645c0ba3085df23 (patch)
treef4269c4c8d33cbfaa4962801bf7d6494a8a53234 /svl
parentpython3: override LINKCC properly, it needs -pthread (diff)
downloadcore-59e4bd07211d8509dcb3e89f6645c0ba3085df23.tar.gz
core-59e4bd07211d8509dcb3e89f6645c0ba3085df23.zip
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
Diffstat (limited to 'svl')
-rw-r--r--svl/source/undo/undo.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index e849637aed73..4b0dda7070fc 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -381,14 +381,7 @@ namespace svl { namespace undo { namespace impl
{
SfxUndoAction* pAction = m_aUndoActionsCleanup.front();
m_aUndoActionsCleanup.pop_front();
- try
- {
- delete pAction;
- }
- catch( const Exception& )
- {
- DBG_UNHANDLED_EXCEPTION();
- }
+ delete pAction;
}
// handle scheduled notification