summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx
index 5d70b309a00f..1fa6eb6c03c8 100644
--- a/scripting/source/protocolhandler/scripthandler.cxx
+++ b/scripting/source/protocolhandler/scripthandler.cxx
@@ -66,8 +66,6 @@ namespace scripting_protocolhandler
const sal_Char * const MYSERVICENAME = "com.sun.star.frame.ProtocolHandler";
const sal_Char * const MYIMPLNAME = "com.sun.star.comp.ScriptProtocolHandler";
-const sal_Char * MYSCHEME = "vnd.sun.star.script";
-const sal_Int32 MYSCHEME_LEN = 20;
void SAL_CALL ScriptProtocolHandler::initialize(
const css::uno::Sequence < css::uno::Any >& aArguments )
@@ -106,7 +104,7 @@ Reference< XDispatch > SAL_CALL ScriptProtocolHandler::queryDispatch(
xFac->parse( aURL.Complete ), UNO_QUERY );
if ( uriRef.is() )
{
- if ( uriRef->getScheme().equals( OUString::createFromAscii( ::scripting_protocolhandler::MYSCHEME ) ) )
+ if ( uriRef->getScheme() == "vnd.sun.star.script" )
{
xDispatcher = this;
}