diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 10:30:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-21 00:00:47 +0200 |
commit | de087da9242a5d24fcc97b42e216e5375bca3f1b (patch) | |
tree | a8218bb1d233de5a30c4937a7d8a603181c2e2f7 /writerfilter/source/dmapper/DomainMapper_Impl.cxx | |
parent | c184f93863c27c5a59614ad0c47bea699abb1e7b (diff) |
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: writerfilter
Change-Id: I6d566f7d7d2ef3d7d5efdd3cc94f129c6b4dbbb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158292
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapper_Impl.cxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index fd27e92510d5..24071c73d1ea 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -799,7 +799,7 @@ void DomainMapper_Impl::RemoveLastParagraph( ) return; uno::Reference<beans::XPropertySet> xDocProps(GetTextDocument(), uno::UNO_QUERY_THROW); - static constexpr OUStringLiteral RecordChanges(u"RecordChanges"); + static constexpr OUString RecordChanges(u"RecordChanges"_ustr); comphelper::ScopeGuard redlineRestore( [xDocProps, aPreviousValue = xDocProps->getPropertyValue(RecordChanges)]() @@ -4713,7 +4713,7 @@ static sal_Int16 lcl_ParseNumberingType( std::u16string_view rCommand ) // The command looks like: " PAGE \* Arabic " // tdf#132185: but may as well be "PAGE \* Arabic" OUString sNumber; - constexpr OUStringLiteral rSeparator(u"\\* "); + constexpr OUString rSeparator(u"\\* "_ustr); if (size_t nStartIndex = rCommand.find(rSeparator); nStartIndex != std::u16string_view::npos) { sal_Int32 nStartIndex2 = nStartIndex + rSeparator.getLength(); @@ -6299,9 +6299,9 @@ static uno::Sequence< beans::PropertyValues > lcl_createTOXLevelHyperlinks( bool std::vector<css::beans::PropertyValues> aNewLevel; aNewLevel.reserve(aLevel.getLength() + 5); // at most 5 added items - static constexpr OUStringLiteral tokType(u"TokenType"); - static constexpr OUStringLiteral tokHStart(u"TokenHyperlinkStart"); - static constexpr OUStringLiteral tokHEnd(u"TokenHyperlinkEnd"); + static constexpr OUString tokType(u"TokenType"_ustr); + static constexpr OUString tokHStart(u"TokenHyperlinkStart"_ustr); + static constexpr OUString tokHEnd(u"TokenHyperlinkEnd"_ustr); static constexpr OUStringLiteral tokPNum(u"TokenPageNumber"); static constexpr OUStringLiteral tokENum(u"TokenEntryNumber"); |