diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-09 02:56:30 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-09 09:59:02 +0900 |
commit | 9262039e908b3ea897180bc723d947d3d7546d4e (patch) | |
tree | 0937618fd39b4d73e770664fae96166304df7d68 /embeddedobj/source/msole/olevisual.cxx | |
parent | e89c99ce5e5474173d354778b531f2dff8eff25e (diff) |
catch exception by constant reference
Diffstat (limited to 'embeddedobj/source/msole/olevisual.cxx')
-rw-r--r-- | embeddedobj/source/msole/olevisual.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/embeddedobj/source/msole/olevisual.cxx b/embeddedobj/source/msole/olevisual.cxx index c4e31b7ce720..617d8e4d7ea4 100644 --- a/embeddedobj/source/msole/olevisual.cxx +++ b/embeddedobj/source/msole/olevisual.cxx @@ -133,7 +133,7 @@ void SAL_CALL OleEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt try { changeState( embed::EmbedStates::RUNNING ); } - catch( uno::Exception& ) + catch( const uno::Exception& ) { OSL_FAIL( "The object should not be resized without activation!\n" ); } @@ -148,7 +148,7 @@ void SAL_CALL OleEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt m_pOleComponent->SetExtent( aSizeToSet, nAspect ); // will throw an exception in case of failure m_bHasSizeToSet = sal_False; } - catch( uno::Exception& ) + catch( const uno::Exception& ) { // some objects do not allow to set the size even in running state m_bHasSizeToSet = sal_True; @@ -224,7 +224,7 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) try { changeState( embed::EmbedStates::RUNNING ); } - catch( uno::Exception ) + catch( const uno::Exception& ) { throw embed::NoVisualAreaSizeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "No size available!\n" ) ), @@ -238,7 +238,7 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) aSize = m_pOleComponent->GetExtent( nAspect ); // will throw an exception in case of failure bSuccess = sal_True; } - catch( uno::Exception& ) + catch( const uno::Exception& ) { } @@ -250,7 +250,7 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) aSize = m_pOleComponent->GetCachedExtent( nAspect ); // will throw an exception in case of failure bSuccess = sal_True; } - catch( uno::Exception& ) + catch( const uno::Exception& ) { } } @@ -263,7 +263,7 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) aSize = m_pOleComponent->GetReccomendedExtent( nAspect ); // will throw an exception in case of failure bSuccess = sal_True; } - catch( uno::Exception& ) + catch( const uno::Exception& ) { } } @@ -282,11 +282,11 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) aResult = m_aCachedSize; } } - catch ( embed::NoVisualAreaSizeException& ) + catch ( const embed::NoVisualAreaSizeException& ) { throw; } - catch ( uno::Exception& ) + catch ( const uno::Exception& ) { throw embed::NoVisualAreaSizeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "No size available!\n" ) ), @@ -388,7 +388,7 @@ embed::VisualRepresentation SAL_CALL OleEmbeddedObject::getPreferredVisualRepres return aVisualRepr; } - catch( uno::Exception& ) + catch( const uno::Exception& ) {} } #endif |