summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/textlayout.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-20 14:50:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-21 10:20:02 +0200
commit0fe36103482b6142833731e77b0d074946138538 (patch)
treeea0afbb7283404e1354e932931f493de4743cf51 /vcl/source/gdi/textlayout.cxx
parent27a271b462c3174bfd5a96c9f5d63f6f689e0b18 (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/textlayout.cxx')
-rw-r--r--vcl/source/gdi/textlayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/textlayout.cxx b/vcl/source/gdi/textlayout.cxx
index 25bf47767ec7..2d0219041ba2 100644
--- a/vcl/source/gdi/textlayout.cxx
+++ b/vcl/source/gdi/textlayout.cxx
@@ -148,9 +148,9 @@ namespace vcl
namespace
{
- bool lcl_normalizeLength( const OUString& _rText, const sal_Int32 _nStartIndex, sal_Int32& _io_nLength )
+ bool lcl_normalizeLength( std::u16string_view _rText, const sal_Int32 _nStartIndex, sal_Int32& _io_nLength )
{
- sal_Int32 nTextLength = _rText.getLength();
+ sal_Int32 nTextLength = _rText.size();
if ( _nStartIndex > nTextLength )
return false;
if ( _nStartIndex + _io_nLength > nTextLength )