diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 10:30:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-20 22:56:41 +0200 |
commit | 9108c6e2755b8d6de3b20ad9a868dd393d5b80a8 (patch) | |
tree | 7c3bd9bcb3564a76805e204b8ad1094a5c905264 /writerperfect | |
parent | d49abee2132d6c572afa86898929fc2ad5b982b1 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/impress/KeynoteImportFilter.cxx | 4 | ||||
-rw-r--r-- | writerperfect/source/writer/EPUBPackage.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
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); |