summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-31 16:38:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-03-31 16:38:16 +0100
commit47315dc95869c8d0388c9e8e43735320f734afe3 (patch)
treec59d3ee4d542b66603745c186bcf87d81196033d
parent11da1b6cd2de4153c534c2f929ee3512f0735fed (diff)
catch exceptions by const reference
-rw-r--r--sd/source/ui/toolpanel/controls/DocumentHelper.cxx6
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");