summaryrefslogtreecommitdiff
path: root/sd/source
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
commit1e1a14ba901b1834e175945ebf0a8efce6131134 (patch)
tree83d75851d5a492a2e170899ce4f943de12b3da9d /sd/source
parent0325f344573d8436a4722c6b61644bba90da57f5 (diff)
catch exceptions by const reference
Diffstat (limited to 'sd/source')
-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 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");