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/source/provider | |
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/source/provider')
4 files changed, 11 insertions, 11 deletions
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 |