diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 10:30:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 20:21:47 +0200 |
commit | 6581f028f85d72f3b85c873eaecd77a37c98ac31 (patch) | |
tree | 3626f3a04bd9c7265ea60094eb825305413c69d4 /forms | |
parent | 26b63f4f2f71a48dc0a9be3356da88f8b5f143dc (diff) |
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: forms
Change-Id: Ifab0f06a776a9c505508781018300c7ce5d46436
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158194
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/Columns.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/FormattedField.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx index 4aab958f934e..56be293fc549 100644 --- a/forms/source/component/Columns.cxx +++ b/forms/source/component/Columns.cxx @@ -83,8 +83,8 @@ const css::uno::Sequence<OUString>& getColumnTypes() sal_Int32 getColumnTypeByModelName(const OUString& aModelName) { - static constexpr OUStringLiteral aModelPrefix (u"com.sun.star.form.component."); - static constexpr OUStringLiteral aCompatibleModelPrefix (u"stardiv.one.form.component."); + static constexpr OUString aModelPrefix (u"com.sun.star.form.component."_ustr); + static constexpr OUString aCompatibleModelPrefix (u"stardiv.one.form.component."_ustr); sal_Int32 nTypeId = -1; if (aModelName == FRM_COMPONENT_EDIT) diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index fccd2367ea17..0d6aafaaa5cf 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -1953,7 +1953,7 @@ void ODatabaseForm::reset_impl(bool _bApproveByListeners) if ( xColProps.is() ) xPSI = xColProps->getPropertySetInfo( ); - static constexpr OUStringLiteral PROPERTY_CONTROLDEFAULT = u"ControlDefault"; + static constexpr OUString PROPERTY_CONTROLDEFAULT = u"ControlDefault"_ustr; if ( xPSI.is() && xPSI->hasPropertyByName( PROPERTY_CONTROLDEFAULT ) ) { Any aDefault = xColProps->getPropertyValue( PROPERTY_CONTROLDEFAULT ); diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index dbabcaf9bcdd..119fcc35f6a1 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -656,7 +656,7 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream) Reference<XNumberFormats> xFormats = xSupplier->getNumberFormats(); OUString sFormatDescription; LanguageType eFormatLanguage = LANGUAGE_DONTKNOW; - static constexpr OUStringLiteral s_aLocaleProp = u"Locale"; + static constexpr OUString s_aLocaleProp = u"Locale"_ustr; Reference<css::beans::XPropertySet> xFormat = xFormats->getByKey(nKey); if (hasProperty(s_aLocaleProp, xFormat)) { @@ -667,7 +667,7 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream) eFormatLanguage = LanguageTag::convertToLanguageType( *pLocale, false); } } - static constexpr OUStringLiteral s_aFormatStringProp = u"FormatString"; + static constexpr OUString s_aFormatStringProp = u"FormatString"_ustr; if (hasProperty(s_aFormatStringProp, xFormat)) xFormat->getPropertyValue(s_aFormatStringProp) >>= sFormatDescription; _rxOutStream->writeUTF(sFormatDescription); |