summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-10 22:14:57 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-10 22:16:07 +0900
commit93a9f170be76965ec004b200ac939e55e8382ca0 (patch)
tree2631f1e25117ae2bef93935fb3dab41d13c728db /embedserv
parent1688a9d9235dd2ee4f3b9497308efd41f7a3fb6f (diff)
catch exception by constant reference
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/embed/docholder.cxx24
-rw-r--r--embedserv/source/embed/ed_ioleobject.cxx2
-rw-r--r--embedserv/source/embed/ed_ipersiststr.cxx14
3 files changed, 20 insertions, 20 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx
index e513b4b38b48..d6b3e23ba954 100644
--- a/embedserv/source/embed/docholder.cxx
+++ b/embedserv/source/embed/docholder.cxx
@@ -460,7 +460,7 @@ HRESULT DocumentHolder::InPlaceActivate(
m_pIOleIPSite->DiscardUndoState();
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
hr = ERROR;
}
@@ -679,7 +679,7 @@ void DocumentHolder::DisconnectFrameDocument( sal_Bool bComplete )
uno::Reference< util::XModifyBroadcaster > xModifiable( m_xDocument, uno::UNO_QUERY_THROW );
xModifiable->removeModifyListener( (util::XModifyListener*)this );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
try
@@ -688,7 +688,7 @@ void DocumentHolder::DisconnectFrameDocument( sal_Bool bComplete )
m_xDocument, uno::UNO_QUERY_THROW );
xBroadcaster->removeCloseListener( (util::XCloseListener*)this );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
try
@@ -697,7 +697,7 @@ void DocumentHolder::DisconnectFrameDocument( sal_Bool bComplete )
m_xFrame, uno::UNO_QUERY_THROW );
xBroadcaster->removeCloseListener( (util::XCloseListener*)this );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
if ( bComplete )
@@ -721,7 +721,7 @@ void DocumentHolder::CloseDocument()
{
xCloseable->close( sal_True );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
}
@@ -738,7 +738,7 @@ void DocumentHolder::CloseFrame()
m_xFrame, uno::UNO_QUERY_THROW );
xBroadcaster->removeCloseListener( (util::XCloseListener*)this );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
uno::Reference<util::XCloseable> xCloseable(
@@ -935,7 +935,7 @@ void DocumentHolder::show()
uno::Reference< util::XModifyBroadcaster > xModifiable( m_xDocument, uno::UNO_QUERY_THROW );
xModifiable->addModifyListener( (util::XModifyListener*)this );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
}
@@ -943,7 +943,7 @@ void DocumentHolder::show()
setTitle(m_aDocumentNamePart);
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
OSL_FAIL( "Can not show the frame!\n" );
}
@@ -1144,7 +1144,7 @@ IDispatch* DocumentHolder::GetIDispatch()
CoTaskMemFree( pVariant );
}
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{}
}
}
@@ -1204,7 +1204,7 @@ HRESULT DocumentHolder::SetExtent( const SIZEL *pSize )
return S_OK;
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
}
}
@@ -1238,7 +1238,7 @@ HRESULT DocumentHolder::GetExtent( SIZEL *pSize )
return S_OK;
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
}
}
@@ -1466,7 +1466,7 @@ DocumentHolder::notifyClosing(
aSource.Source, uno::UNO_QUERY_THROW );
xEventBroadcaster->removeCloseListener( (util::XCloseListener*)this );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{}
if ( m_xDocument.is() && m_xDocument == aSource.Source )
diff --git a/embedserv/source/embed/ed_ioleobject.cxx b/embedserv/source/embed/ed_ioleobject.cxx
index db6adfaa729c..2eaa0a21613b 100644
--- a/embedserv/source/embed/ed_ioleobject.cxx
+++ b/embedserv/source/embed/ed_ioleobject.cxx
@@ -246,7 +246,7 @@ STDMETHODIMP EmbedDocument_Impl::DoVerb(
break;
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
return OLEOBJ_S_CANNOT_DOVERB_NOW;
}
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index 6d6bc7712cec..8eadce0a9158 100644
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -114,7 +114,7 @@ uno::Reference< io::XInputStream > createTempXInStreamFromIStream(
}
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
}
@@ -154,7 +154,7 @@ HRESULT copyXTempOutToIStream( uno::Reference< io::XOutputStream > xTempOut, ISt
try {
nReadBytes = xTempIn->readBytes( aBuffer, nConstBufferSize );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
return E_FAIL;
}
@@ -430,7 +430,7 @@ STDMETHODIMP EmbedDocument_Impl::InitNew( IStorage *pStg )
// xLoadable->load( fillArgsForLoading_Impl( uno::Reference< io::XInputStream >(), nStreamMode ) );
hr = S_OK;
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
}
@@ -566,7 +566,7 @@ STDMETHODIMP EmbedDocument_Impl::Load( IStorage *pStg )
hr = m_pDocHolder->SetExtent( &aSizeToSet );
// hr = m_pDocHolder->SetVisArea( &aRectToSet );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
}
@@ -687,7 +687,7 @@ STDMETHODIMP EmbedDocument_Impl::Save( IStorage *pStgSave, BOOL fSameAsLoad )
}
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
}
@@ -818,7 +818,7 @@ STDMETHODIMP EmbedDocument_Impl::Load( LPCOLESTR pszFileName, DWORD /*dwMode*/ )
m_aFileName = ::rtl::OUString( reinterpret_cast<const sal_Unicode*>(pszFileName) );
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}
}
@@ -912,7 +912,7 @@ STDMETHODIMP EmbedDocument_Impl::Save( LPCOLESTR pszFileName, BOOL fRemember )
hr = S_OK;
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
}