Kaydet (Commit) db246b49 authored tarafından Noel Grandin's avatar Noel Grandin

scripting: remove SAL_THROW macro

Change-Id: I535a57d043ac51926ae6f640d721d0dd1571c3fa
üst e9ae2b07
......@@ -505,7 +505,6 @@ namespace basprov
static Reference< XInterface > SAL_CALL create_BasicProviderImpl(
Reference< XComponentContext > const & xContext )
SAL_THROW(())
{
return static_cast< lang::XTypeProvider * >( new BasicProviderImpl( xContext ) );
}
......
......@@ -78,7 +78,7 @@ namespace comp_DialogModelProvider
return s;
}
uno::Reference< uno::XInterface > SAL_CALL _create(const uno::Reference< uno::XComponentContext > & context) SAL_THROW((uno::Exception))
uno::Reference< uno::XInterface > SAL_CALL _create(const uno::Reference< uno::XComponentContext > & context)
{
return static_cast< ::cppu::OWeakObject * >(new dlgprov::DialogModelProvider(context));
}
......@@ -791,7 +791,6 @@ static OUString aResourceResolverPropName("ResourceResolver");
static Reference< XInterface > SAL_CALL create_DialogProviderImpl(
Reference< XComponentContext > const & xContext )
SAL_THROW(())
{
return static_cast< lang::XTypeProvider * >( new DialogProviderImpl( xContext ) );
}
......
......@@ -68,7 +68,6 @@ ActiveMSPList::createNewMSP( const uno::Any& context )
Reference< provider::XScriptProvider >
ActiveMSPList::getMSPFromAnyContext( const Any& aContext )
SAL_THROW(( lang::IllegalArgumentException, RuntimeException ))
{
Reference< provider::XScriptProvider > msp;
OUString sContext;
......@@ -112,7 +111,6 @@ ActiveMSPList::getMSPFromAnyContext( const Any& aContext )
Reference< provider::XScriptProvider >
ActiveMSPList::getMSPFromInvocationContext( const Reference< document::XScriptInvocationContext >& xContext )
SAL_THROW(( lang::IllegalArgumentException, RuntimeException ))
{
Reference< provider::XScriptProvider > msp;
......@@ -147,7 +145,6 @@ Reference< provider::XScriptProvider >
Reference< provider::XScriptProvider >
ActiveMSPList::getMSPFromStringContext( const OUString& context )
SAL_THROW(( lang::IllegalArgumentException, RuntimeException ))
{
Reference< provider::XScriptProvider > msp;
try
......
......@@ -63,16 +63,13 @@ public:
virtual ~ActiveMSPList();
css::uno::Reference< css::script::provider::XScriptProvider >
getMSPFromStringContext( const OUString& context )
SAL_THROW(( css::lang::IllegalArgumentException, css::uno::RuntimeException ));
getMSPFromStringContext( const OUString& context );
css::uno::Reference< css::script::provider::XScriptProvider >
getMSPFromAnyContext( const css::uno::Any& context )
SAL_THROW(( css::lang::IllegalArgumentException, css::uno::RuntimeException ));
getMSPFromAnyContext( const css::uno::Any& context );
css::uno::Reference< css::script::provider::XScriptProvider >
getMSPFromInvocationContext( const css::uno::Reference< css::document::XScriptInvocationContext >& context )
SAL_THROW(( css::lang::IllegalArgumentException, css::uno::RuntimeException ));
getMSPFromInvocationContext( const css::uno::Reference< css::document::XScriptInvocationContext >& context );
//XEventListener
......
......@@ -712,7 +712,6 @@ BrowseNodeFactoryImpl::getOrganizerHierarchy()
Sequence< OUString > SAL_CALL
bnf_getSupportedServiceNames( )
SAL_THROW(())
{
OUString str_name(
"com.sun.star.script.browse.BrowseNodeFactory");
......@@ -722,7 +721,6 @@ bnf_getSupportedServiceNames( )
OUString SAL_CALL
bnf_getImplementationName( )
SAL_THROW(())
{
return OUString(
"com.sun.star.script.browse.BrowseNodeFactory" );
......@@ -730,7 +728,6 @@ bnf_getImplementationName( )
Reference< XInterface > SAL_CALL
bnf_create( Reference< XComponentContext > const & xComponentContext )
SAL_THROW( (Exception) )
{
return static_cast< ::cppu::OWeakObject * >(
new BrowseNodeFactoryImpl( xComponentContext ) );
......
......@@ -818,7 +818,6 @@ Reference< XInterface > SAL_CALL sp_create(
Sequence< OUString > sp_getSupportedServiceNames( )
SAL_THROW(())
{
OUString names[3];
......@@ -831,7 +830,6 @@ Sequence< OUString > sp_getSupportedServiceNames( )
OUString sp_getImplementationName( )
SAL_THROW(())
{
return OUString( "com.sun.star.script.provider.MasterScriptProvider" );
}
......@@ -845,7 +843,6 @@ Reference< XInterface > SAL_CALL urihelper_create(
}
Sequence< OUString > urihelper_getSupportedServiceNames( )
SAL_THROW(())
{
OUString serviceNameList[] = {
OUString(
......@@ -858,7 +855,6 @@ Sequence< OUString > urihelper_getSupportedServiceNames( )
}
OUString urihelper_getImplementationName( )
SAL_THROW(())
{
return OUString(
"com.sun.star.script.provider.ScriptURIHelper");
......
......@@ -64,7 +64,6 @@ MasterScriptProviderFactory::getActiveMSPList() const
}
Sequence< OUString > SAL_CALL mspf_getSupportedServiceNames( )
SAL_THROW(())
{
OUString str_name(
"com.sun.star.script.provider.MasterScriptProviderFactory");
......@@ -73,7 +72,6 @@ Sequence< OUString > SAL_CALL mspf_getSupportedServiceNames( )
}
OUString SAL_CALL mspf_getImplementationName( )
SAL_THROW(())
{
return OUString(
"com.sun.star.script.provider.MasterScriptProviderFactory");
......@@ -81,7 +79,6 @@ OUString SAL_CALL mspf_getImplementationName( )
Reference< XInterface > SAL_CALL
mspf_create( Reference< XComponentContext > const & xComponentContext )
SAL_THROW( (Exception) )
{
return static_cast< ::cppu::OWeakObject * >(
new MasterScriptProviderFactory( xComponentContext ) );
......
......@@ -92,7 +92,6 @@ static OUString getImplementationName_StringResourceImpl()
static Reference< XInterface > SAL_CALL create_StringResourceImpl(
Reference< XComponentContext > const & xContext )
SAL_THROW(())
{
return static_cast< ::cppu::OWeakObject * >( new StringResourcePersistenceImpl( xContext ) );
}
......@@ -2278,7 +2277,6 @@ static OUString getImplementationName_StringResourceWithStorageImpl()
static Reference< XInterface > SAL_CALL create_StringResourceWithStorageImpl(
Reference< XComponentContext > const & xContext )
SAL_THROW(())
{
return static_cast< ::cppu::OWeakObject * >( new StringResourceWithStorageImpl( xContext ) );
}
......@@ -2604,7 +2602,6 @@ static OUString getImplementationName_StringResourceWithLocationImpl()
static Reference< XInterface > SAL_CALL create_StringResourceWithLocationImpl(
Reference< XComponentContext > const & xContext )
SAL_THROW(())
{
return static_cast< ::cppu::OWeakObject * >( new StringResourceWithLocationImpl( xContext ) );
}
......
......@@ -1073,7 +1073,6 @@ namespace evtlstner
uno::Reference< XInterface > SAL_CALL create(
Reference< XComponentContext > const & xContext )
SAL_THROW(())
{
return static_cast< lang::XTypeProvider * >( new EventListener( xContext ) );
}
......@@ -1103,7 +1102,6 @@ namespace ooevtdescgen
uno::Reference< XInterface > SAL_CALL create(
Reference< XComponentContext > const & xContext )
SAL_THROW(())
{
return static_cast< lang::XTypeProvider * >( new VBAToOOEventDescGen( xContext ) );
}
......
......@@ -27,12 +27,8 @@ namespace evtlstner
// component operations
css::uno::Reference< css::uno::XInterface > SAL_CALL create(
css::uno::Reference< css::uno::XComponentContext > const & xContext )
SAL_THROW(());
css::uno::Reference< css::uno::XComponentContext > const & xContext );
OUString SAL_CALL getImplementationName();
......@@ -45,12 +41,8 @@ namespace ooevtdescgen
// component operations
css::uno::Reference< css::uno::XInterface > SAL_CALL create(
css::uno::Reference< css::uno::XComponentContext > const & xContext )
SAL_THROW(());
css::uno::Reference< css::uno::XComponentContext > const & xContext );
OUString SAL_CALL getImplementationName();
......
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