diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-14 12:50:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-14 17:50:11 +0000 |
commit | 899dfbca1755f730dc935ca0d929236f999b9879 (patch) | |
tree | 1bd455232191f057c088791145f0d1fb8329ce9d /sd | |
parent | e056c1ce10779b42ae17866913cf4db06b86a491 (diff) |
elide some temporary OStrings
where we can pass a string_view into OStringToOUString
Change-Id: If7803ba49aa15f6e9c7bd386d32fb84003155390
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148844
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index adeae7080e1b..7b1cd3a4b6a6 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -1068,7 +1068,7 @@ OUString HtmlExport::DocumentMetadata() const const sal_uInt64 nLen = aStream.GetSize(); OSL_ENSURE(nLen < o3tl::make_unsigned(SAL_MAX_INT32), "Stream can't fit in OString"); - OString aData(static_cast<const char*>(aStream.GetData()), static_cast<sal_Int32>(nLen)); + std::string_view aData(static_cast<const char*>(aStream.GetData()), static_cast<sal_Int32>(nLen)); return OStringToOUString(aData, RTL_TEXTENCODING_UTF8); } |