diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-25 16:42:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-25 16:42:23 +0100 |
commit | 1800862c700428e74aa500c9dee41237b8991932 (patch) | |
tree | 8d1019148d5c4a565fec82d73a2e773dd3fc9883 /scripting | |
parent | b33b441341abcdaa6e208bee7f0af528620055c5 (diff) |
loplugin:stringconstant: look into 'char const * const var = "..."'
Change-Id: I52a97b8ec273509131c2200e47527221cb62d7ee
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index cd82b1931f5f..8decdb26671e 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -67,9 +67,6 @@ using namespace ::com::sun::star::document; namespace scripting_protocolhandler { -const sal_Char * const MYSERVICENAME = "com.sun.star.frame.ProtocolHandler"; -const sal_Char * const MYIMPLNAME = "com.sun.star.comp.ScriptProtocolHandler"; - void SAL_CALL ScriptProtocolHandler::initialize( const css::uno::Sequence < css::uno::Any >& aArguments ) throw ( css::uno::Exception, std::exception ) @@ -468,14 +465,13 @@ throw( RuntimeException, std::exception ) /* Helper for XServiceInfo */ Sequence< OUString > ScriptProtocolHandler::impl_getStaticSupportedServiceNames() { - Sequence< OUString > seqServiceNames { OUString::createFromAscii(::scripting_protocolhandler::MYSERVICENAME) }; - return seqServiceNames; + return {"com.sun.star.frame.ProtocolHandler"}; } /* Helper for XServiceInfo */ OUString ScriptProtocolHandler::impl_getStaticImplementationName() { - return OUString::createFromAscii( ::scripting_protocolhandler::MYIMPLNAME ); + return OUString("com.sun.star.comp.ScriptProtocolHandler"); } /* Helper for registry */ |