diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-31 16:38:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-31 16:38:16 +0100 |
commit | 47315dc95869c8d0388c9e8e43735320f734afe3 (patch) | |
tree | c59d3ee4d542b66603745c186bcf87d81196033d | |
parent | 11da1b6cd2de4153c534c2f929ee3512f0735fed (diff) |
catch exceptions by const reference
-rw-r--r-- | sd/source/ui/toolpanel/controls/DocumentHelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/toolpanel/controls/DocumentHelper.cxx b/sd/source/ui/toolpanel/controls/DocumentHelper.cxx index 802f1d9e1..ff42e8264 100644 --- a/sd/source/ui/toolpanel/controls/DocumentHelper.cxx +++ b/sd/source/ui/toolpanel/controls/DocumentHelper.cxx @@ -245,17 +245,17 @@ SdPage* DocumentHelper::AddMasterPage ( // master page. rTargetDocument.InsertMasterPage (pClonedMasterPage); } - catch (uno::Exception& rException) + catch(const uno::Exception&) { pClonedMasterPage = NULL; DBG_UNHANDLED_EXCEPTION(); } - catch (::std::exception rException) + catch(const ::std::exception&) { pClonedMasterPage = NULL; OSL_TRACE ("caught general exception"); } - catch (...) + catch(...) { pClonedMasterPage = NULL; OSL_TRACE ("caught general exception"); |