diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-06 18:30:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-07 08:46:04 +0200 |
commit | b667543a2a63b3933630032b5470db8bc3eefaf9 (patch) | |
tree | 13783ce88f4a85cdc943561cf50a2e66aee6b086 /configmgr/source/configurationprovider.cxx | |
parent | ae4f76363dd25eaaa7d332512af067567e78ca0a (diff) |
loplugin:ostr in configmgr
Change-Id: If1caaee8e54b5861e1435e900b3ae7bd90ecae5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167237
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'configmgr/source/configurationprovider.cxx')
-rw-r--r-- | configmgr/source/configurationprovider.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx index 9789e0721bd6..02c3c78d4303 100644 --- a/configmgr/source/configurationprovider.cxx +++ b/configmgr/source/configurationprovider.cxx @@ -67,8 +67,8 @@ constexpr OUString updateAccessServiceName = void badNodePath() { throw css::uno::Exception( - ("com.sun.star.configuration.ConfigurationProvider expects a single," - " non-empty, string nodepath argument"), + (u"com.sun.star.configuration.ConfigurationProvider expects a single," + " non-empty, string nodepath argument"_ustr), nullptr); } @@ -112,7 +112,7 @@ private: { return default_ ? default_provider::getImplementationName() - : "com.sun.star.comp.configuration.ConfigurationProvider"; + : u"com.sun.star.comp.configuration.ConfigurationProvider"_ustr; } virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override @@ -123,7 +123,7 @@ private: { return default_ ? default_provider::getSupportedServiceNames() - : css::uno::Sequence<OUString> { "com.sun.star.configuration.ConfigurationProvider" }; + : css::uno::Sequence<OUString> { u"com.sun.star.configuration.ConfigurationProvider"_ustr }; } virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( @@ -201,8 +201,8 @@ Service::createInstanceWithArguments( break; } else { throw css::uno::Exception( - ("com.sun.star.configuration.ConfigurationProvider expects" - " NamedValue or PropertyValue arguments"), + (u"com.sun.star.configuration.ConfigurationProvider expects" + " NamedValue or PropertyValue arguments"_ustr), nullptr); } // For backwards compatibility, allow "nodepath" and "Locale" in any @@ -218,8 +218,8 @@ Service::createInstanceWithArguments( locale.isEmpty()) { throw css::uno::Exception( - ("com.sun.star.configuration.ConfigurationProvider expects" - " at most one, non-empty, string Locale argument"), + (u"com.sun.star.configuration.ConfigurationProvider expects" + " at most one, non-empty, string Locale argument"_ustr), nullptr); } } @@ -368,8 +368,8 @@ com_sun_star_comp_configuration_ConfigurationProvider_get_implementation( value = v2.Value; } else { throw css::uno::Exception( - ("com.sun.star.configuration.ConfigurationProvider factory" - " expects NamedValue or PropertyValue arguments"), + (u"com.sun.star.configuration.ConfigurationProvider factory" + " expects NamedValue or PropertyValue arguments"_ustr), nullptr); } // For backwards compatibility, allow "Locale" and (ignored) @@ -379,9 +379,9 @@ com_sun_star_comp_configuration_ConfigurationProvider_get_implementation( locale.isEmpty()) { throw css::uno::Exception( - ("com.sun.star.configuration.ConfigurationProvider" + (u"com.sun.star.configuration.ConfigurationProvider" " factory expects at most one, non-empty, string" - " Locale argument"), + " Locale argument"_ustr), nullptr); } } else if (!name.equalsIgnoreAsciiCase("enableasync")) { |