Improved loplugin:stringconstant (now that GCC 7 supports it): svl

Change-Id: I7df3b3c430c0bb8e12eeedc1d0bf11d1f7453f55
Reviewed-on: https://gerrit.libreoffice.org/76642
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2019-07-30 17:48:16 +02:00
parent 086ce5c2bb
commit 0f1af34528
8 changed files with 18 additions and 18 deletions

View file

@ -358,12 +358,12 @@ OUString PKIStatusToString(int n)
{
switch (n)
{
case 0: return OUString("granted");
case 1: return OUString("grantedWithMods");
case 2: return OUString("rejection");
case 3: return OUString("waiting");
case 4: return OUString("revocationWarning");
case 5: return OUString("revocationNotification");
case 0: return "granted";
case 1: return "grantedWithMods";
case 2: return "rejection";
case 3: return "waiting";
case 4: return "revocationWarning";
case 5: return "revocationNotification";
default: return "unknown (" + OUString::number(n) + ")";
}
}

View file

@ -45,7 +45,7 @@ uno::Sequence< OUString > FSStorageFactory::impl_staticGetSupportedServiceNames(
OUString FSStorageFactory::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.embed.FileSystemStorageFactory");
return "com.sun.star.comp.embed.FileSystemStorageFactory";
}
uno::Reference< uno::XInterface > SAL_CALL FSStorageFactory::impl_staticCreateSelfInstance(

View file

@ -41,15 +41,15 @@ OUString SvxMacro::GetLanguage()const
{
if(eType==STARBASIC)
{
return OUString(SVX_MACRO_LANGUAGE_STARBASIC);
return SVX_MACRO_LANGUAGE_STARBASIC;
}
else if(eType==JAVASCRIPT)
{
return OUString(SVX_MACRO_LANGUAGE_JAVASCRIPT);
return SVX_MACRO_LANGUAGE_JAVASCRIPT;
}
else if(eType==EXTENDED_STYPE)
{
return OUString(SVX_MACRO_LANGUAGE_SF);
return SVX_MACRO_LANGUAGE_SF;
}
return aLibName;

View file

@ -293,7 +293,7 @@ OUString INetContentTypes::GetContentType(INetContentType eTypeID)
if (aTypeName.isEmpty())
{
OSL_FAIL("INetContentTypes::GetContentType(): Bad ID");
return OUString(CONTENT_TYPE_STR_APP_OCTSTREAM);
return CONTENT_TYPE_STR_APP_OCTSTREAM;
}
return aTypeName;
}

View file

@ -331,7 +331,7 @@ sal_Int32 SAL_CALL SvNumberFormatterServiceObj::queryPreviewColorForNumber( cons
OUString SAL_CALL SvNumberFormatterServiceObj::getImplementationName()
{
return OUString("com.sun.star.uno.util.numbers.SvNumberFormatterServiceObject");
return "com.sun.star.uno.util.numbers.SvNumberFormatterServiceObject";
}
sal_Bool SAL_CALL SvNumberFormatterServiceObj::supportsService( const OUString& ServiceName )
@ -571,7 +571,7 @@ sal_Int32 SAL_CALL SvNumberFormatsObj::getFormatForLocale( sal_Int32 nKey, const
OUString SAL_CALL SvNumberFormatsObj::getImplementationName()
{
return OUString("SvNumberFormatsObj");
return "SvNumberFormatsObj";
}
sal_Bool SAL_CALL SvNumberFormatsObj::supportsService( const OUString& ServiceName )
@ -781,7 +781,7 @@ void SAL_CALL SvNumberFormatObj::setPropertyValues( const uno::Sequence<beans::P
OUString SAL_CALL SvNumberFormatObj::getImplementationName()
{
return OUString("SvNumberFormatObj");
return "SvNumberFormatObj";
}
sal_Bool SAL_CALL SvNumberFormatObj::supportsService( const OUString& ServiceName )
@ -907,7 +907,7 @@ void SAL_CALL SvNumberFormatSettingsObj::removeVetoableChangeListener( const OUS
OUString SAL_CALL SvNumberFormatSettingsObj::getImplementationName()
{
return OUString("SvNumberFormatSettingsObj");
return "SvNumberFormatSettingsObj";
}
sal_Bool SAL_CALL SvNumberFormatSettingsObj::supportsService( const OUString& ServiceName )

View file

@ -98,7 +98,7 @@ void SAL_CALL SvNumberFormatsSupplierServiceObject::initialize( const Sequence<
OUString SAL_CALL SvNumberFormatsSupplierServiceObject::getImplementationName( )
{
return OUString("com.sun.star.uno.util.numbers.SvNumberFormatsSupplierServiceObject");
return "com.sun.star.uno.util.numbers.SvNumberFormatsSupplierServiceObject";
}
sal_Bool SAL_CALL SvNumberFormatsSupplierServiceObject::supportsService( const OUString& _rServiceName )

View file

@ -1315,7 +1315,7 @@ Sequence< OUString > PasswordContainer::impl_getStaticSupportedServiceNames( )
OUString PasswordContainer::impl_getStaticImplementationName()
{
return OUString("stardiv.svl.PasswordContainer");
return "stardiv.svl.PasswordContainer";
}
Reference< XInterface > SAL_CALL PasswordContainer::impl_createInstance( const Reference< XMultiServiceFactory >& xServiceManager )

View file

@ -40,7 +40,7 @@ public:
virtual OUString SAL_CALL getImplementationName() override
{
return OUString("com.sun.star.comp.svl.PathService");
return "com.sun.star.comp.svl.PathService";
}
virtual sal_Bool SAL_CALL supportsService (