summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 19:54:29 +0200
commit711e01c7878ef0c319fd40c95484cb9be5105e00 (patch)
tree767cb7174b52375aad202c1af70c0e5a0452c446 /toolkit
parent113c4566933b798e3de4daf9e276ce24cdb8e773 (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: toolkit
Change-Id: I67ba7b0f4d99f080b343a9b26a242cf4008b820c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158244 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx2
-rw-r--r--toolkit/source/controls/stdtabcontroller.cxx2
-rw-r--r--toolkit/source/controls/tabpagemodel.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index c6292cd1e21b..8c9bba0890de 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -65,7 +65,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::util;
using namespace toolkit;
-constexpr OUStringLiteral PROPERTY_RESOURCERESOLVER = u"ResourceResolver";
+constexpr OUString PROPERTY_RESOURCERESOLVER = u"ResourceResolver"_ustr;
namespace
diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx
index 554fcfb3c76b..bac4aea58547 100644
--- a/toolkit/source/controls/stdtabcontroller.cxx
+++ b/toolkit/source/controls/stdtabcontroller.cxx
@@ -111,7 +111,7 @@ bool StdTabController::ImplCreateComponentSequence(
if ( pTabs )
{
// opt: Constant String for TabStop name
- static constexpr OUStringLiteral aTabStopName = u"Tabstop";
+ static constexpr OUString aTabStopName = u"Tabstop"_ustr;
Reference< XPropertySet > xPSet( xCtrl->getModel(), UNO_QUERY );
Reference< XPropertySetInfo > xInfo = xPSet->getPropertySetInfo();
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx
index 53a2c7335b27..7185f8241947 100644
--- a/toolkit/source/controls/tabpagemodel.cxx
+++ b/toolkit/source/controls/tabpagemodel.cxx
@@ -142,7 +142,7 @@ void SAL_CALL UnoControlTabPageModel::initialize (const Sequence<Any>& rArgument
Reference<XPropertySet> xDialogProp(xDialogModel,UNO_QUERY);
if ( xDialogProp.is() )
{
- static constexpr OUStringLiteral s_sResourceResolver = u"ResourceResolver";
+ static constexpr OUString s_sResourceResolver = u"ResourceResolver"_ustr;
setPropertyValue(s_sResourceResolver,xDialogProp->getPropertyValue(s_sResourceResolver));
setPropertyValue(GetPropertyName(BASEPROPERTY_TITLE),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_TITLE)));
setPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT)));