From 6e4d3c3476fb60116fc7100a30a30ae15f60ce62 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 19 Oct 2023 10:30:21 +0200 Subject: Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: package Change-Id: I5d70d9291a64139bc2dc60c63173fef862a00f2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158207 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- package/source/xstor/owriteablestream.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'package/source/xstor') diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx index 1ed64c60e204..bd58f579a326 100644 --- a/package/source/xstor/owriteablestream.cxx +++ b/package/source/xstor/owriteablestream.cxx @@ -974,8 +974,8 @@ uno::Sequence< beans::PropertyValue > OWriteStream_Impl::ReadPackageStreamProper // The "Compressed" property must be set after "MediaType" property, // since the setting of the last one can change the value of the first one static constexpr OUStringLiteral sMediaType = u"MediaType"; - static constexpr OUStringLiteral sCompressed = u"Compressed"; - static constexpr OUStringLiteral sSize = u"Size"; + static constexpr OUString sCompressed = u"Compressed"_ustr; + static constexpr OUString sSize = u"Size"_ustr; static constexpr OUStringLiteral sEncrypted = u"Encrypted"; if ( m_nStorageType == embed::StorageFormats::OFOPXML || m_nStorageType == embed::StorageFormats::PACKAGE ) { @@ -2770,8 +2770,8 @@ void SAL_CALL OWriteStream::setPropertyValue( const OUString& aPropertyName, con } m_pImpl->GetStreamProperties(); - static constexpr OUStringLiteral aCompressedString( u"Compressed" ); - static constexpr OUStringLiteral aMediaTypeString( u"MediaType" ); + static constexpr OUString aCompressedString( u"Compressed"_ustr ); + static constexpr OUString aMediaTypeString( u"MediaType"_ustr ); if ( m_nStorageType == embed::StorageFormats::PACKAGE && aPropertyName == aMediaTypeString ) { // if the "Compressed" property is not set explicitly, the MediaType can change the default value -- cgit v1.2.3