summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3/a11y
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-09 09:55:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-10 12:59:38 +0200
commite4ff847fe0796420ba8023b70cad8589f5f19e9f (patch)
tree136786200de69f70dde4190c9725f35fe14b33e0 /vcl/unx/gtk3/a11y
parent5a89496ffcfcd561b3e595e01f35e0302fa00841 (diff)
loplugin:stringview check for getToken and trim
since we now have o3tl versions of those that work on string_view. Also improve those o3tl functions to support both string_view and u16string_view Change-Id: Iacab2996becec62aa78a5597c52d983bb784749a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132755 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk3/a11y')
-rw-r--r--vcl/unx/gtk3/a11y/atktextattributes.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/a11y/atktextattributes.cxx b/vcl/unx/gtk3/a11y/atktextattributes.cxx
index f73d79aefe3f..c127333caf43 100644
--- a/vcl/unx/gtk3/a11y/atktextattributes.cxx
+++ b/vcl/unx/gtk3/a11y/atktextattributes.cxx
@@ -38,6 +38,7 @@
#include <i18nlangtag/languagetag.hxx>
#include <tools/UnitConversion.hxx>
+#include <o3tl/string_view.hxx>
#include <stdio.h>
#include <string.h>
@@ -1230,9 +1231,9 @@ attribute_set_new_from_extended_attributes(
OUString sProperty = sExtendedAttrs.getToken( 0, ';', nIndex );
sal_Int32 nColonPos = 0;
- OString sPropertyName = OUStringToOString( sProperty.getToken( 0, ':', nColonPos ),
+ OString sPropertyName = OUStringToOString( o3tl::getToken(sProperty, 0, ':', nColonPos ),
RTL_TEXTENCODING_UTF8 );
- OString sPropertyValue = OUStringToOString( sProperty.getToken( 0, ':', nColonPos ),
+ OString sPropertyValue = OUStringToOString( o3tl::getToken(sProperty, 0, ':', nColonPos ),
RTL_TEXTENCODING_UTF8 );
pSet = attribute_set_prepend( pSet,