From 1e1a14ba901b1834e175945ebf0a8efce6131134 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 31 Mar 2011 16:38:16 +0100 Subject: catch exceptions by const reference --- sd/source/ui/toolpanel/controls/DocumentHelper.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/toolpanel/controls/DocumentHelper.cxx b/sd/source/ui/toolpanel/controls/DocumentHelper.cxx index e3fec0e9f04f..860f08f7564f 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"); -- cgit