summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-15 21:20:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-17 18:45:56 +0200
commit429a960e157f3375e795cdec8f265ace1c5bdc9e (patch)
treef36bea7935a5e5fb9cd6e57765fed6d8c8690928 /package
parent4417c30d6aa8d415f1f63364bb5dedcd44ae5562 (diff)
elide some OUString allocation
Change-Id: Iadd73477bf3b0edaa0fb7db10f9ffca88fe737e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134476 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/owriteablestream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index 2a4f1de3f9ef..8f9a93a2cc11 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -2771,8 +2771,8 @@ void SAL_CALL OWriteStream::setPropertyValue( const OUString& aPropertyName, con
}
m_pImpl->GetStreamProperties();
- OUString aCompressedString( "Compressed" );
- OUString aMediaTypeString( "MediaType" );
+ static constexpr OUStringLiteral aCompressedString( u"Compressed" );
+ static constexpr OUStringLiteral aMediaTypeString( u"MediaType" );
if ( m_pData->m_nStorageType == embed::StorageFormats::PACKAGE && aPropertyName == aMediaTypeString )
{
// if the "Compressed" property is not set explicitly, the MediaType can change the default value