diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:49:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:55:24 +0200 |
commit | f5a219c3acbc47be3aaecd50cbdc70debaed5b03 (patch) | |
tree | a415306b741c3beb3f345a92ffaaf37b4cc3f2b9 /scripting | |
parent | 680fb734cd7c0121cc1ba5d45e1d3f0153907fe3 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): scripting
Change-Id: I60519d5f0663ab244468f10cbc79a8fc80771726
Reviewed-on: https://gerrit.libreoffice.org/76651
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/basprov/basprov.cxx | 4 | ||||
-rw-r--r-- | scripting/source/dlgprov/dlgprov.cxx | 4 | ||||
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 2 | ||||
-rw-r--r-- | scripting/source/provider/BrowseNodeFactoryImpl.cxx | 6 | ||||
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.cxx | 8 | ||||
-rw-r--r-- | scripting/source/provider/MasterScriptProviderFactory.cxx | 4 | ||||
-rw-r--r-- | scripting/source/provider/URIHelper.cxx | 4 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 8 | ||||
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 4 |
9 files changed, 22 insertions, 22 deletions
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx index 1f0926abfa25..9ab855c4207a 100644 --- a/scripting/source/basprov/basprov.cxx +++ b/scripting/source/basprov/basprov.cxx @@ -70,7 +70,7 @@ namespace basprov static OUString getImplementationName_BasicProviderImpl() { - return OUString( "com.sun.star.comp.scripting.ScriptProviderForBasic" ); + return "com.sun.star.comp.scripting.ScriptProviderForBasic"; } @@ -399,7 +399,7 @@ namespace basprov OUString BasicProviderImpl::getName( ) { - return OUString("Basic"); + return "Basic"; } diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx index 3c71bcf6102d..48334a44538b 100644 --- a/scripting/source/dlgprov/dlgprov.cxx +++ b/scripting/source/dlgprov/dlgprov.cxx @@ -69,7 +69,7 @@ namespace comp_DialogModelProvider OUString _getImplementationName() { - return OUString("com.sun.star.comp.scripting.DialogModelProvider"); + return "com.sun.star.comp.scripting.DialogModelProvider"; } uno::Sequence< OUString > _getSupportedServiceNames() @@ -160,7 +160,7 @@ namespace dlgprov static OUString getImplementationName_DialogProviderImpl() { - return OUString( "com.sun.star.comp.scripting.DialogProvider" ); + return "com.sun.star.comp.scripting.DialogProvider"; } diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index d1a7fb9e8bb1..47216464cdb0 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -434,7 +434,7 @@ Sequence< OUString > ScriptProtocolHandler::impl_getStaticSupportedServiceNames( /* Helper for XServiceInfo */ OUString ScriptProtocolHandler::impl_getStaticImplementationName() { - return OUString("com.sun.star.comp.ScriptProtocolHandler"); + return "com.sun.star.comp.ScriptProtocolHandler"; } /* Helper for registry */ diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index c7a7829d900f..3e3bf6b57e20 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -544,7 +544,7 @@ public: virtual OUString SAL_CALL getName() override { - return OUString("Root"); + return "Root"; } virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL @@ -632,8 +632,8 @@ bnf_getSupportedServiceNames( ) OUString bnf_getImplementationName( ) { - return OUString( - "com.sun.star.script.browse.BrowseNodeFactory" ); + return + "com.sun.star.script.browse.BrowseNodeFactory"; } Reference< XInterface > diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index 7b4ed3b9ab87..ca84b2599888 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -656,7 +656,7 @@ sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) OUString SAL_CALL MasterScriptProvider::getImplementationName( ) { - return OUString( "com.sun.star.script.provider.MasterScriptProvider" ); + return "com.sun.star.script.provider.MasterScriptProvider"; } sal_Bool SAL_CALL MasterScriptProvider::supportsService( const OUString& serviceName ) @@ -700,7 +700,7 @@ static Sequence< OUString > sp_getSupportedServiceNames( ) static OUString sp_getImplementationName( ) { - return OUString( "com.sun.star.script.provider.MasterScriptProvider" ); + return "com.sun.star.script.provider.MasterScriptProvider"; } // ***** registration or ScriptingFrameworkURIHelper @@ -718,8 +718,8 @@ static Sequence< OUString > urihelper_getSupportedServiceNames( ) static OUString urihelper_getImplementationName( ) { - return OUString( - "com.sun.star.script.provider.ScriptURIHelper"); + return + "com.sun.star.script.provider.ScriptURIHelper"; } static const struct cppu::ImplementationEntry s_entries [] = diff --git a/scripting/source/provider/MasterScriptProviderFactory.cxx b/scripting/source/provider/MasterScriptProviderFactory.cxx index 5cfb70e7d7f5..3a6d74ac9598 100644 --- a/scripting/source/provider/MasterScriptProviderFactory.cxx +++ b/scripting/source/provider/MasterScriptProviderFactory.cxx @@ -72,8 +72,8 @@ Sequence< OUString > mspf_getSupportedServiceNames( ) OUString mspf_getImplementationName( ) { - return OUString( - "com.sun.star.script.provider.MasterScriptProviderFactory"); + return + "com.sun.star.script.provider.MasterScriptProviderFactory"; } Reference< XInterface > diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx index 650d019d1779..1d7ec0ce5bb1 100644 --- a/scripting/source/provider/URIHelper.cxx +++ b/scripting/source/provider/URIHelper.cxx @@ -237,8 +237,8 @@ ScriptingFrameworkURIHelper::getRootStorageURI() OUString SAL_CALL ScriptingFrameworkURIHelper::getImplementationName() { - return OUString( - "com.sun.star.script.provider.ScriptURIHelper" ); + return + "com.sun.star.script.provider.ScriptURIHelper"; } sal_Bool SAL_CALL diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 2c4c2f8a785d..b74f76c23906 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -80,7 +80,7 @@ static Sequence< OUString > getSupportedServiceNames_StringResourceImpl() static OUString getImplementationName_StringResourceImpl() { - return OUString( "com.sun.star.comp.scripting.StringResource" ); + return "com.sun.star.comp.scripting.StringResource"; } static Reference< XInterface > create_StringResourceImpl( @@ -683,7 +683,7 @@ StringResourcePersistenceImpl::~StringResourcePersistenceImpl() OUString StringResourcePersistenceImpl::getImplementationName( ) { - return OUString( "com.sun.star.comp.scripting.StringResource"); + return "com.sun.star.comp.scripting.StringResource"; } @@ -2065,7 +2065,7 @@ static Sequence< OUString > getSupportedServiceNames_StringResourceWithStorageIm static OUString getImplementationName_StringResourceWithStorageImpl() { - return OUString( "com.sun.star.comp.scripting.StringResourceWithStorage" ); + return "com.sun.star.comp.scripting.StringResourceWithStorage"; } static Reference< XInterface > create_StringResourceWithStorageImpl( @@ -2351,7 +2351,7 @@ static Sequence< OUString > getSupportedServiceNames_StringResourceWithLocationI static OUString getImplementationName_StringResourceWithLocationImpl() { - return OUString( "com.sun.star.comp.scripting.StringResourceWithLocation" ); + return "com.sun.star.comp.scripting.StringResourceWithLocation"; } static Reference< XInterface > create_StringResourceWithLocationImpl( diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index d987c5206999..0cdf6221cc25 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -575,7 +575,7 @@ public: OUString SAL_CALL getImplementationName() override { - return OUString( "ooo.vba.EventListener" ); + return "ooo.vba.EventListener"; } sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override @@ -921,7 +921,7 @@ public: OUString SAL_CALL getImplementationName() override { - return OUString( "ooo.vba.VBAToOOEventDesc" ); + return "ooo.vba.VBAToOOEventDesc"; } sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override |