diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 10:30:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 14:41:21 +0200 |
commit | 15b86648f031bb2b44b23a1826ad4ac2a00884b3 (patch) | |
tree | 6a66ed73d05585f2b7885df355e7b002c52082cd /cppuhelper | |
parent | 4f66ce572be5bbec9fe8feef8f0937d0ca06e964 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/component_context.cxx | 2 | ||||
-rw-r--r-- | cppuhelper/source/macro_expander.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
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; |