summaryrefslogtreecommitdiff
path: root/package/source/xstor
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 07:06:58 +0200
commit6e4d3c3476fb60116fc7100a30a30ae15f60ce62 (patch)
treee2cd56a8579d3d703f8f131993035eb4d99a83dc /package/source/xstor
parent3bbed358b617eb407184edac9a11aed62e36a2d7 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'package/source/xstor')
-rw-r--r--package/source/xstor/owriteablestream.cxx8
1 files changed, 4 insertions, 4 deletions
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