summaryrefslogtreecommitdiff
path: root/scripting/source/provider/MasterScriptProvider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/provider/MasterScriptProvider.cxx')
-rw-r--r--scripting/source/provider/MasterScriptProvider.cxx20
1 files changed, 3 insertions, 17 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index 83a559358932..888b7f9800b1 100644
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -419,7 +419,9 @@ Sequence< Reference< browse::XBrowseNode > > SAL_CALL
MasterScriptProvider::getChildNodes()
throw ( css::uno::RuntimeException, std::exception )
{
- Sequence< Reference< provider::XScriptProvider > > providers = getAllProviders();
+ if ( !providerCache() )
+ throw RuntimeException( "MasterScriptProvider::getAllProviders, cache not initialised" );
+ Sequence< Reference< provider::XScriptProvider > > providers = providerCache()->getAllProviders();
sal_Int32 size = providers.getLength();
bool hasPkgs = m_xMSPPkg.is();
@@ -752,22 +754,6 @@ sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) throw ( RuntimeException
}
-Sequence< Reference< provider::XScriptProvider > > SAL_CALL
-MasterScriptProvider::getAllProviders() throw ( css::uno::RuntimeException )
-{
- if ( providerCache() )
- {
- return providerCache()->getAllProviders();
- }
- else
- {
- OUString errorMsg(
- "MasterScriptProvider::getAllProviders, cache not initialised");
- throw RuntimeException( errorMsg.concat( errorMsg ) );
- }
-}
-
-
OUString SAL_CALL MasterScriptProvider::getImplementationName( )
throw( RuntimeException, std::exception )
{