writerperfect/source/impress/KeynoteImportFilter.cxx | 4 ++-- writerperfect/source/writer/EPUBPackage.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 9108c6e2755b8d6de3b20ad9a868dd393d5b80a8 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Oct 19 10:30:41 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Oct 20 22:56:41 2023 +0200 Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: writerperfect Change-Id: Ibaf69c1d922be6fade028ce6602f215cd9cd35cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158293 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/writerperfect/source/impress/KeynoteImportFilter.cxx b/writerperfect/source/impress/KeynoteImportFilter.cxx index abf7d21e4055..c2fb11012391 100644 --- a/writerperfect/source/impress/KeynoteImportFilter.cxx +++ b/writerperfect/source/impress/KeynoteImportFilter.cxx @@ -215,8 +215,8 @@ KeynoteImportFilter::detect(css::uno::Sequence<css::beans::PropertyValue>& Descr if (bUCBContentChanged) pDescriptor[nUCBContentLocation].Value <<= xContent; - static constexpr OUStringLiteral sTypeName(u"impress_AppleKeynote"); - pDescriptor[nTypeNameLocation].Value <<= OUString(sTypeName); + static constexpr OUString sTypeName(u"impress_AppleKeynote"_ustr); + pDescriptor[nTypeNameLocation].Value <<= sTypeName; return sTypeName; } diff --git a/writerperfect/source/writer/EPUBPackage.cxx b/writerperfect/source/writer/EPUBPackage.cxx index ba8bac1d91ce..6ad143aa5e49 100644 --- a/writerperfect/source/writer/EPUBPackage.cxx +++ b/writerperfect/source/writer/EPUBPackage.cxx @@ -43,7 +43,7 @@ EPUBPackage::EPUBPackage(uno::Reference<uno::XComponentContext> xContext, mxOutputStream.set( mxStorage->openStreamElementByHierarchicalName("mimetype", embed::ElementModes::READWRITE), uno::UNO_QUERY); - static constexpr OStringLiteral aMimeType("application/epub+zip"); + static constexpr OString aMimeType("application/epub+zip"_ostr); uno::Sequence<sal_Int8> aData(reinterpret_cast<const sal_Int8*>(aMimeType.getStr()), aMimeType.getLength()); mxOutputStream->writeBytes(aData);