summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl/gloshdl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-04 11:14:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-05 12:57:00 +0200
commit9f1701d01d9f664828356976d8592492f85b30f5 (patch)
treea91eaef0674591af87b06096fdd186283559a8de /sw/source/uibase/dochdl/gloshdl.cxx
parentb8bb44161aeb6e00526a38343b63e678ce7d4a1a (diff)
use more o3tl::getToken
found by inspecting call sites of OUString::getToken Change-Id: I4269c7476c7aa46fac39528227e350568f0eb34a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dochdl/gloshdl.cxx')
-rw-r--r--sw/source/uibase/dochdl/gloshdl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx
index 216d4a137b13..3846bdb3e1c5 100644
--- a/sw/source/uibase/dochdl/gloshdl.cxx
+++ b/sw/source/uibase/dochdl/gloshdl.cxx
@@ -117,8 +117,8 @@ void SwGlossaryHdl::SetCurGroup(const OUString &rGrp, bool bApi, bool bAlwaysCre
break;
}
}
- const OUString sPath = sGroup.getToken(1, GLOS_DELIM);
- sal_uInt16 nComparePath = o3tl::narrowing<sal_uInt16>(sPath.toInt32());
+ const std::u16string_view sPath = o3tl::getToken(sGroup, 1, GLOS_DELIM);
+ sal_uInt16 nComparePath = o3tl::narrowing<sal_uInt16>(o3tl::toInt32(sPath));
if(nCurrentPath == nComparePath &&
o3tl::getToken(sGroup, 0, GLOS_DELIM) == sCurBase)
bPathEqual = true;