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

Change-Id: Ie82faef06ea13d1a0d3007915334822d3f4f94e3
Reviewed-on: https://gerrit.libreoffice.org/76690
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2019-07-30 17:57:37 +02:00
parent d4ef035e2d
commit 6c145a826f
9 changed files with 9 additions and 9 deletions

View File

@@ -232,7 +232,7 @@ OUString Access::getImplementationName()
assert(thisIs(IS_ANY)); assert(thisIs(IS_ANY));
osl::MutexGuard g(*lock_); osl::MutexGuard g(*lock_);
checkLocalizedPropertyAccess(); checkLocalizedPropertyAccess();
return OUString("org.openoffice-configmgr::Access"); return "org.openoffice-configmgr::Access";
} }
sal_Bool Access::supportsService(OUString const & ServiceName) sal_Bool Access::supportsService(OUString const & ServiceName)

View File

@@ -444,7 +444,7 @@ css::uno::Reference< css::uno::XInterface > createDefault(
} }
OUString getImplementationName() { OUString getImplementationName() {
return OUString("com.sun.star.comp.configuration.ConfigurationProvider"); return "com.sun.star.comp.configuration.ConfigurationProvider";
} }
css::uno::Sequence< OUString > getSupportedServiceNames() { css::uno::Sequence< OUString > getSupportedServiceNames() {

View File

@@ -637,7 +637,7 @@ css::uno::Reference< css::uno::XInterface > create(
} }
OUString getImplementationName() { OUString getImplementationName() {
return OUString("com.sun.star.comp.configuration.ConfigurationRegistry"); return "com.sun.star.comp.configuration.ConfigurationRegistry";
} }
css::uno::Sequence< OUString > getSupportedServiceNames() { css::uno::Sequence< OUString > getSupportedServiceNames() {

View File

@@ -41,7 +41,7 @@ css::uno::Reference< css::uno::XInterface > create(
} }
OUString getImplementationName() { OUString getImplementationName() {
return OUString("com.sun.star.comp.configuration.DefaultProvider"); return "com.sun.star.comp.configuration.DefaultProvider";
} }
css::uno::Sequence< OUString > getSupportedServiceNames() { css::uno::Sequence< OUString > getSupportedServiceNames() {

View File

@@ -41,7 +41,7 @@ rtl::Reference< Node > LocalizedValueNode::clone(bool) const {
} }
OUString LocalizedValueNode::getTemplateName() const { OUString LocalizedValueNode::getTemplateName() const {
return OUString("*"); return "*";
} }

View File

@@ -117,7 +117,7 @@ css::uno::Reference< css::uno::XInterface > create(
} }
OUString getImplementationName() { OUString getImplementationName() {
return OUString("com.sun.star.comp.configuration.ReadOnlyAccess"); return "com.sun.star.comp.configuration.ReadOnlyAccess";
} }
css::uno::Sequence< OUString > getSupportedServiceNames() { css::uno::Sequence< OUString > getSupportedServiceNames() {

View File

@@ -139,7 +139,7 @@ css::uno::Reference< css::uno::XInterface > create(
} }
OUString getImplementationName() { OUString getImplementationName() {
return OUString("com.sun.star.comp.configuration.ReadWriteAccess"); return "com.sun.star.comp.configuration.ReadWriteAccess";
} }
css::uno::Sequence< OUString > getSupportedServiceNames() { css::uno::Sequence< OUString > getSupportedServiceNames() {

View File

@@ -303,7 +303,7 @@ OUString RootAccess::getImplementationName()
assert(thisIs(IS_ANY)); assert(thisIs(IS_ANY));
osl::MutexGuard g(*lock_); osl::MutexGuard g(*lock_);
checkLocalizedPropertyAccess(); checkLocalizedPropertyAccess();
return OUString("configmgr.RootAccess"); return "configmgr.RootAccess";
} }
} }

View File

@@ -148,7 +148,7 @@ css::uno::Reference< css::uno::XInterface > create(
} }
OUString getImplementationName() { OUString getImplementationName() {
return OUString("com.sun.star.comp.configuration.Update"); return "com.sun.star.comp.configuration.Update";
} }
css::uno::Sequence< OUString > getSupportedServiceNames() { css::uno::Sequence< OUString > getSupportedServiceNames() {