diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-14 00:03:52 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-14 01:31:17 +0900 |
commit | 520891d058f9e936b9b8afb490b5a26c156008ef (patch) | |
tree | 6cb8ebad42c3504cb3e26249ba3458afb02a9922 /framework/source/tabwin | |
parent | 4c1c531435e1bdb151d45626648486062012cbaa (diff) |
catch exception by constant reference
Diffstat (limited to 'framework/source/tabwin')
-rw-r--r-- | framework/source/tabwin/tabwindow.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/tabwin/tabwindow.cxx b/framework/source/tabwin/tabwindow.cxx index 3ade1983ae4a..9d38c70c4fe1 100644 --- a/framework/source/tabwin/tabwindow.cxx +++ b/framework/source/tabwin/tabwindow.cxx @@ -214,7 +214,7 @@ void TabWindow::implts_SendNotification( Notification eNotify, sal_Int32 ID ) co break; } } - catch( css::uno::RuntimeException& ) + catch( const css::uno::RuntimeException& ) { pIterator.remove(); } @@ -242,7 +242,7 @@ void TabWindow::implts_SendNotification( Notification eNotify, sal_Int32 ID, con break; } } - catch( css::uno::RuntimeException& ) + catch( const css::uno::RuntimeException& ) { pIterator.remove(); } @@ -318,11 +318,11 @@ throw (css::uno::Exception, css::uno::RuntimeException) xToolkit = css::uno::Reference< css::awt::XToolkit >( xSMGR->createInstance( SERVICENAME_VCLTOOLKIT ), css::uno::UNO_QUERY ); } - catch ( css::uno::RuntimeException& ) + catch ( const css::uno::RuntimeException& ) { throw; } - catch ( css::uno::Exception& ) + catch ( const css::uno::Exception& ) { } } @@ -359,11 +359,11 @@ throw (css::uno::Exception, css::uno::RuntimeException) { xTopWindow = css::uno::Reference< css::awt::XTopWindow >( xToolkit->createWindow( aDescriptor ), css::uno::UNO_QUERY ); } - catch ( css::uno::RuntimeException& ) + catch ( const css::uno::RuntimeException& ) { throw; } - catch ( css::uno::Exception& ) + catch ( const css::uno::Exception& ) { } } |