diff options
author | Duncan Foster <dfoster@openoffice.org> | 2003-08-19 10:38:28 +0000 |
---|---|---|
committer | Duncan Foster <dfoster@openoffice.org> | 2003-08-19 10:38:28 +0000 |
commit | 94643e2757d153e82f671e69b1328a68b52993eb (patch) | |
tree | 07ef4b60458fd98b8c4feb3b502246579f948e5b /scripting/source | |
parent | 548fc8991f6f7a8fe29e300b0ebdeb43804beffb (diff) |
#17307#
Adding Duncans changes for Runtime->Provider
These changes need to be reviewed/reworked
Diffstat (limited to 'scripting/source')
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index e21ae2ce37df..8a97fdb8d48b 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -2,9 +2,9 @@ * * $RCSfile: scripthandler.cxx,v $ * -* $Revision: 1.10 $ +* $Revision: 1.11 $ * -* last change: $Author: dfoster $ $Date: 2003-08-12 14:01:51 $ +* last change: $Author: dfoster $ $Date: 2003-08-19 11:38:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -169,10 +169,10 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( // Creates a ScriptProvider ( if one is not created allready ) createScriptProvider( aURL.Complete ); - Reference< provider::XScript > xScript = + Reference< provider::XScript > xFunc = m_xScriptProvider->getScript( aURL.Complete ); - validateXRef( xScript, - "ScriptProtocolHandler::dispatchWithNotification: validate xScript - unable to obtain XScript interface" ); + validateXRef( xFunc, + "ScriptProtocolHandler::dispatchWithNotification: validate xFunc - unable to obtain XScript interface" ); Sequence< Any > inArgs( 0 ); @@ -203,7 +203,7 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( } } } - invokeResult = xScript->invoke( inArgs, outIndex, outArgs ); + invokeResult = xFunc->invoke( inArgs, outIndex, outArgs ); bSuccess = sal_True; } @@ -355,10 +355,10 @@ throw ( RuntimeException ) Reference< XInterface > xXinterface = m_xFactory->createInstanceWithArguments( ::rtl::OUString::createFromAscii( - "drafts.com.sun.star.script.framework.provider.ScriptProvider" ), + "drafts.com.sun.star.script.framework.provider.MasterScriptProvider" ), args ); validateXRef( xXinterface, - "ScriptProtocolHandler::initialize: cannot get instance of ScriptProvider" ); + "ScriptProtocolHandler::initialize: cannot get instance of MasterScriptProvider" ); m_xScriptProvider = Reference< provider::XScriptProvider >( xXinterface, UNO_QUERY_THROW ); } |