summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 18:42:47 +0200
commit7c59c59a0b6abee5d2c147139a79051a190939aa (patch)
treeed8ded3dc473cc2776bd450df8f124e7bb898939
parent9ef3adb3b83824e5b5a539c5886ba59df744bfaa (diff)
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 <sbergman@redhat.com>
-rw-r--r--scripting/source/basprov/basmethnode.cxx2
-rw-r--r--scripting/source/basprov/basscript.cxx2
-rw-r--r--scripting/source/dlgprov/dlgprov.cxx2
-rw-r--r--scripting/source/provider/URIHelper.cxx8
-rw-r--r--scripting/source/stringresource/stringresource.cxx2
5 files changed, 8 insertions, 8 deletions
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 )