diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-01 11:20:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-02 16:49:37 +0200 |
commit | 3ef9fac503f3bb0478f826fd2ef3347a21c0cd46 (patch) | |
tree | b74d24f4581eb1dee9ee463b6ab2074d9e44504b /scripting | |
parent | 2bc1044279e8708c9d5f6558e1564293f161bc59 (diff) |
-Werror,-Wunused-const-variable
Change-Id: I5e00ce258e2dc2b13dc0f7a38f5a92bd1235e81e
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 4 |
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; } |