diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-20 14:50:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-21 10:20:02 +0200 |
commit | 0fe36103482b6142833731e77b0d074946138538 (patch) | |
tree | ea0afbb7283404e1354e932931f493de4743cf51 /vcl/source/gdi/pdfwriter_impl.cxx | |
parent | 27a271b462c3174bfd5a96c9f5d63f6f689e0b18 (diff) |
use more string_view in vcl
Change-Id: I66f96a305bb095716023ae1e565950971826bce0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140242
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 38c8414fbeb4..5e6955a0a45b 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -10407,7 +10407,7 @@ bool PDFWriterImpl::checkEmitStructure() return bEmit; } -sal_Int32 PDFWriterImpl::beginStructureElement( PDFWriter::StructElement eType, const OUString& rAlias ) +sal_Int32 PDFWriterImpl::beginStructureElement( PDFWriter::StructElement eType, std::u16string_view rAlias ) { if( m_nCurrentPage < 0 ) return -1; @@ -10454,9 +10454,9 @@ sal_Int32 PDFWriterImpl::beginStructureElement( PDFWriter::StructElement eType, m_nCurrentStructElement = nNewId; // handle alias names - if( !rAlias.isEmpty() && eType != PDFWriter::NonStructElement ) + if( !rAlias.empty() && eType != PDFWriter::NonStructElement ) { - OStringBuffer aNameBuf( rAlias.getLength() ); + OStringBuffer aNameBuf( rAlias.size() ); appendName( rAlias, aNameBuf ); OString aAliasName( aNameBuf.makeStringAndClear() ); rEle.m_aAlias = aAliasName; |