[Libreoffice-commits] core.git: svl/source
Michael Stahl
mstahl at redhat.com
Fri Jul 1 11:25:12 UTC 2016
svl/source/undo/undo.cxx | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
New commits:
commit 59e4bd07211d8509dcb3e89f6645c0ba3085df23
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri Jul 1 13:20:44 2016 +0200
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
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index e849637..4b0dda7 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
More information about the Libreoffice-commits
mailing list