summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/mmoutputpage.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-26 23:49:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-27 09:23:46 +0100
commit476c2c340d0ee8bfea3d59ea869975107fe05891 (patch)
tree157f08d239c621b0c924f883073853a94d0eecdb /sw/source/ui/dbui/mmoutputpage.cxx
parent6f976916e2ae5dd83838a7f5de273944eb61e7f2 (diff)
catch by const reference
Diffstat (limited to 'sw/source/ui/dbui/mmoutputpage.cxx')
-rw-r--r--sw/source/ui/dbui/mmoutputpage.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx
index 374e68f37dce..41b4dc5554c7 100644
--- a/sw/source/ui/dbui/mmoutputpage.cxx
+++ b/sw/source/ui/dbui/mmoutputpage.cxx
@@ -693,11 +693,11 @@ IMPL_LINK(SwMailMergeOutputPage, SaveOutputHdl_Impl, PushButton*, pButton)
{
xStore->storeToURL( sPath, aValues );
}
- catch( task::ErrorCodeIOException& aErrorEx )
+ catch (const task::ErrorCodeIOException& rErrorEx)
{
- nErrorCode = (sal_uInt32)aErrorEx.ErrCode;
+ nErrorCode = (sal_uInt32)rErrorEx.ErrCode;
}
- catch( Exception& )
+ catch (const Exception&)
{
nErrorCode = ERRCODE_IO_GENERAL;
}
@@ -745,11 +745,11 @@ IMPL_LINK(SwMailMergeOutputPage, SaveOutputHdl_Impl, PushButton*, pButton)
{
xStore->storeToURL( sTargetTempURL, aValues );
}
- catch( task::ErrorCodeIOException& aErrorEx )
+ catch (const task::ErrorCodeIOException& rErrorEx)
{
- nErrorCode = (sal_uInt32)aErrorEx.ErrCode;
+ nErrorCode = (sal_uInt32)rErrorEx.ErrCode;
}
- catch( Exception& )
+ catch (const Exception&)
{
nErrorCode = ERRCODE_IO_GENERAL;
}
@@ -824,7 +824,7 @@ IMPL_LINK(SwMailMergeOutputPage, SaveOutputHdl_Impl, PushButton*, pButton)
uno::Reference< frame::XStorable > xTempStore( xTempDocShell->GetModel(), uno::UNO_QUERY);
xTempStore->storeToURL( sOutPath, aValues );
}
- catch( const uno::Exception& )
+ catch (const uno::Exception&)
{
bFailed = true;
}