cppuhelper/source/component_context.cxx | 2 +- cppuhelper/source/macro_expander.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 15b86648f031bb2b44b23a1826ad4ac2a00884b3 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Oct 19 10:30:08 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Oct 19 14:41:21 2023 +0200 Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: cppuhelper Change-Id: I4c221461c60c5e96b738bb902253984a9b0b312b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158170 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx index 21604a6bcd1b..da070bdf027c 100644 --- a/cppuhelper/source/component_context.cxx +++ b/cppuhelper/source/component_context.cxx @@ -47,7 +47,7 @@ #include <memory> #include <utility> -constexpr OUStringLiteral SMGR_SINGLETON = u"/singletons/com.sun.star.lang.theServiceManager"; +constexpr OUString SMGR_SINGLETON = u"/singletons/com.sun.star.lang.theServiceManager"_ustr; constexpr OUStringLiteral TDMGR_SINGLETON = u"/singletons/com.sun.star.reflection.theTypeDescriptionManager"; constexpr OUStringLiteral AC_SINGLETON = u"/singletons/com.sun.star.security.theAccessController"; diff --git a/cppuhelper/source/macro_expander.cxx b/cppuhelper/source/macro_expander.cxx index 0cf2fe99d268..ce227a7e76f4 100644 --- a/cppuhelper/source/macro_expander.cxx +++ b/cppuhelper/source/macro_expander.cxx @@ -34,8 +34,8 @@ #include "macro_expander.hxx" #include "paths.hxx" -constexpr OUStringLiteral SERVICE_NAME_A = u"com.sun.star.lang.MacroExpander"; -constexpr OUStringLiteral SERVICE_NAME_B = u"com.sun.star.lang.BootstrapMacroExpander"; +constexpr OUString SERVICE_NAME_A = u"com.sun.star.lang.MacroExpander"_ustr; +constexpr OUString SERVICE_NAME_B = u"com.sun.star.lang.BootstrapMacroExpander"_ustr; constexpr OUStringLiteral IMPL_NAME = u"com.sun.star.lang.comp.cppuhelper.BootstrapMacroExpander"; using namespace ::osl;