diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-10 12:09:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-11 08:44:09 +0200 |
commit | 71337b4327805b73e92c995153c5746d89793b13 (patch) | |
tree | fd66764b57912cb2a8b86618e97f1e90d607d2cd /sw/source/filter/ww8/ww8scan.cxx | |
parent | bab44a97d21d0ac8a8a06678e71024c1a830943f (diff) |
use more string_view in sw
Change-Id: Ibefb8549834ba5011286e3221f1ae276e2c0c0bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141153
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8scan.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index f9529062cde1..925548c70dc5 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -6710,13 +6710,13 @@ static OUString Read(SvStream& rStream) return aRet; } -static void Write(const OUString& rString, SvStream& rStream) +static void Write(std::u16string_view aString, SvStream& rStream) { sal_uInt16 nBuf = 0; - nBuf |= rString.getLength(); // cch, 0..14th bits. + nBuf |= sal_Int32(aString.size()); // cch, 0..14th bits. nBuf |= 0x8000; // fAnsiString, 15th bit. rStream.WriteUInt16(nBuf); - SwWW8Writer::WriteString8(rStream, rString, false, RTL_TEXTENCODING_ASCII_US); + SwWW8Writer::WriteString8(rStream, aString, false, RTL_TEXTENCODING_ASCII_US); } }; @@ -6738,7 +6738,7 @@ void MSOFactoidType::Write(WW8Export& rExport) aStream.WriteUInt32(m_nId); // id MSOPBString::Write(m_aUri, aStream); MSOPBString::Write(m_aTag, aStream); - MSOPBString::Write("", aStream); // rgbDownloadURL + MSOPBString::Write(u"", aStream); // rgbDownloadURL rStream.WriteUInt32(aStream.Tell()); aStream.Seek(0); rStream.WriteStream(aStream); |