scripting/source/basprov/basmethnode.cxx | 2 +- scripting/source/basprov/basscript.cxx | 2 +- scripting/source/dlgprov/dlgprov.cxx | 2 +- scripting/source/provider/URIHelper.cxx | 8 ++++---- scripting/source/stringresource/stringresource.cxx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)
New commits: commit 7c59c59a0b6abee5d2c147139a79051a190939aa Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Oct 19 10:30:26 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Oct 20 18:42:47 2023 +0200 Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: scripting Change-Id: I74516d08ed48f2c9f4a0d4e105c96f95c127485b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158218 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/scripting/source/basprov/basmethnode.cxx b/scripting/source/basprov/basmethnode.cxx index 168d297e48de..f26e4c9a931b 100644 --- a/scripting/source/basprov/basmethnode.cxx +++ b/scripting/source/basprov/basmethnode.cxx @@ -45,7 +45,7 @@ using namespace ::sf_misc; #define BASPROV_PROPERTY_ID_EDITABLE 2 constexpr OUStringLiteral BASPROV_PROPERTY_URI = u"URI"; -constexpr OUStringLiteral BASPROV_PROPERTY_EDITABLE = u"Editable"; +constexpr OUString BASPROV_PROPERTY_EDITABLE = u"Editable"_ustr; #define BASPROV_DEFAULT_ATTRIBS() PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT | PropertyAttribute::READONLY diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx index f3ab8d2dd224..de50f62e11de 100644 --- a/scripting/source/basprov/basscript.cxx +++ b/scripting/source/basprov/basscript.cxx @@ -45,7 +45,7 @@ namespace basprov { #define BASSCRIPT_PROPERTY_ID_CALLER 1 -constexpr OUStringLiteral BASSCRIPT_PROPERTY_CALLER = u"Caller"; +constexpr OUString BASSCRIPT_PROPERTY_CALLER = u"Caller"_ustr; #define BASSCRIPT_DEFAULT_ATTRIBS() PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx index 18815f499e72..32e85900d440 100644 --- a/scripting/source/dlgprov/dlgprov.cxx +++ b/scripting/source/dlgprov/dlgprov.cxx @@ -554,7 +554,7 @@ namespace dlgprov // XDialogProvider - constexpr OUStringLiteral aDecorationPropName = u"Decoration"; + constexpr OUString aDecorationPropName = u"Decoration"_ustr; Reference < XControl > DialogProviderImpl::createDialogImpl( const OUString& URL, const Reference< XInterface >& xHandler, diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx index 5333bee34da4..4b122da8b1d7 100644 --- a/scripting/source/provider/URIHelper.cxx +++ b/scripting/source/provider/URIHelper.cxx @@ -34,14 +34,14 @@ namespace ucb = ::com::sun::star::ucb; namespace lang = ::com::sun::star::lang; namespace uri = ::com::sun::star::uri; -constexpr OUStringLiteral SHARE = u"share"; +constexpr OUString SHARE = u"share"_ustr; constexpr OUStringLiteral SHARE_UNO_PACKAGES_URI = u"vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE"; -constexpr OUStringLiteral USER = u"user"; -constexpr OUStringLiteral USER_URI = - u"vnd.sun.star.expand:${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}"; +constexpr OUString USER = u"user"_ustr; +constexpr OUString USER_URI = + u"vnd.sun.star.expand:${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}"_ustr; diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 64988a5aafaf..096692602407 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -665,7 +665,7 @@ Sequence< OUString > StringResourcePersistenceImpl::getSupportedServiceNames( ) // XInitialization base functionality for derived classes -constexpr OUStringLiteral aNameBaseDefaultStr = u"strings"; +constexpr OUString aNameBaseDefaultStr = u"strings"_ustr; void StringResourcePersistenceImpl::implInitializeCommonParameters ( std::unique_lock<std::mutex>& rGuard, const Sequence< Any >& aArguments )