Kaydet (Commit) 73de7fa2 authored tarafından Caolán McNamara's avatar Caolán McNamara

catch by const reference

üst c6f1beb4
......@@ -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());
}
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment