diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 21:51:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-21 09:11:10 +0100 |
commit | 73de7fa2ccfab86a90130d8a571bdae861dab5bc (patch) | |
tree | 888d72d966debcfbc130ba1e7452b2d20e3021d1 /sc/source/ui/vba | |
parent | c6f1beb434ab5e43a1762cdd3681b4f2ad9114e2 (diff) |
catch by const reference
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r-- | sc/source/ui/vba/vbaapplication.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaoleobjects.cxx | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index e8bb7adf1ae4..4e3b89c724c2 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -218,7 +218,7 @@ ScVbaApplication::invoke( const ::rtl::OUString& FunctionName, const uno::Sequen uno::Reference< script::XInvocation > xWSF( new ScVbaWSFunction( this, mxContext ) ); aAny = xWSF->invoke( FunctionName, Params, OutParamIndex, OutParam ); } - catch( uno::Exception& ) + catch (const uno::Exception&) { aAny <<= script::BasicErrorException( ::rtl::OUString(), uno::Reference< uno::XInterface >(), 1000, ::rtl::OUString() ); } @@ -519,7 +519,7 @@ ScVbaApplication::setCutCopyMode( const uno::Any& _cutcopymode ) throw (uno::Run { xFlushableClipboard->flushClipboard(); } - catch( const uno::Exception& ) + catch (const uno::Exception&) { } Application::AcquireSolarMutex( nRef ); @@ -733,7 +733,7 @@ ScVbaApplication::GoTo( const uno::Any& Reference, const uno::Any& Scroll ) thro gridWindow->GrabFocus(); } } - catch( uno::RuntimeException ) + catch (const uno::RuntimeException&) { //maybe this should be a procedure name //TODO for procedure name @@ -835,7 +835,7 @@ ScVbaApplication::setCursor( sal_Int32 _cursor ) throw (uno::RuntimeException) // IllegalArgumentException, or so } } - catch( const uno::Exception& ) + catch (const uno::Exception&) { DBG_UNHANDLED_EXCEPTION(); } @@ -996,7 +996,7 @@ rtl::OUString ScVbaApplication::getOfficePath( const rtl::OUString& _sPathType ) sUrl = sUrl.copy( nIndex + 1 ); ::osl::File::getSystemPathFromFileURL( sUrl, sRetPath ); } - catch (uno::Exception&) + catch (const uno::Exception&) { DebugHelper::exception(SbERR_METHOD_FAILED, rtl::OUString()); } @@ -1528,7 +1528,7 @@ ScVbaApplication::GetOpenFilename(const uno::Any& FileFilter, const uno::Any& Fi } } } - catch( const uno::Exception& ) + catch (const uno::Exception&) { DebugHelper::exception(SbERR_METHOD_FAILED, rtl::OUString()); } @@ -1696,7 +1696,7 @@ ScVbaApplication::GetSaveAsFilename( const ::com::sun::star::uno::Any& InitialFi } } } - catch( const uno::Exception& ) + catch (const uno::Exception&) { DebugHelper::exception(SbERR_METHOD_FAILED, rtl::OUString()); } diff --git a/sc/source/ui/vba/vbaoleobjects.cxx b/sc/source/ui/vba/vbaoleobjects.cxx index 84cba7b96e92..7cecaff5784b 100644 --- a/sc/source/ui/vba/vbaoleobjects.cxx +++ b/sc/source/ui/vba/vbaoleobjects.cxx @@ -141,7 +141,7 @@ ScVbaOLEObjects::getItemByStringIndex( const rtl::OUString& sIndex ) throw (uno: { return OLEObjectsImpl_BASE::getItemByStringIndex( sIndex ); } - catch( uno::RuntimeException ) + catch (const uno::RuntimeException&) { uno::Reference< container::XIndexAccess > xIndexAccess( m_xIndexAccess, uno::UNO_QUERY_THROW ); sal_Int32 nCount = xIndexAccess->getCount(); |