diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-04 11:14:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-05 12:57:00 +0200 |
commit | 9f1701d01d9f664828356976d8592492f85b30f5 (patch) | |
tree | a91eaef0674591af87b06096fdd186283559a8de /svx | |
parent | b8bb44161aeb6e00526a38343b63e678ce7d4a1a (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 'svx')
-rw-r--r-- | svx/source/form/fmobj.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 8ecd1a4c7de6..e337f79d7288 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -21,6 +21,7 @@ #include <fmprop.hxx> #include <fmvwimp.hxx> #include <fmpgeimp.hxx> +#include <o3tl/string_view.hxx> #include <svx/fmview.hxx> #include <svx/fmpage.hxx> #include <svx/svdovirt.hxx> @@ -424,8 +425,8 @@ Reference< XInterface > FmFormObj::ensureModelEnv(const Reference< XInterface > sal_Int32 nTokIndex = 0; do { - OUString aToken = sAccessPath.getToken( 0, '\\', nTokIndex ); - sal_uInt16 nIndex = static_cast<sal_uInt16>(aToken.toInt32()); + std::u16string_view aToken = o3tl::getToken(sAccessPath, 0, '\\', nTokIndex ); + sal_uInt16 nIndex = static_cast<sal_uInt16>(o3tl::toInt32(aToken)); // get the DSS of the source form (we have to find an equivalent for) DBG_ASSERT(nIndex<xSourceContainer->getCount(), "FmFormObj::ensureModelEnv : invalid access path !"); |