diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-27 09:37:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-27 13:31:20 +0200 |
commit | 0a7eac8576f313dcaf27ee45326d71fd6b5aea1e (patch) | |
tree | 1af6ac4da7b61da0eb5b1a68cc2d7a7491ec1f24 /configmgr/source/partial.cxx | |
parent | 322ea272bba63ba779120ca5ead4a4b40d1bb93f (diff) |
use more string_view in accessibility..configmgr
Change-Id: Ie16d36faac7d06e275348ed68e6c6b2518534fd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140636
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr/source/partial.cxx')
-rw-r--r-- | configmgr/source/partial.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configmgr/source/partial.cxx b/configmgr/source/partial.cxx index f31e98549684..ae8ec599906e 100644 --- a/configmgr/source/partial.cxx +++ b/configmgr/source/partial.cxx @@ -34,10 +34,10 @@ namespace configmgr { namespace { bool parseSegment( - OUString const & path, sal_Int32 * index, OUString * segment) + std::u16string_view path, sal_Int32 * index, OUString * segment) { assert( - index != nullptr && *index >= 0 && *index <= path.getLength() && + index != nullptr && *index >= 0 && *index <= static_cast<sal_Int32>(path.size()) && segment != nullptr); if (path[(*index)++] == '/') { OUString name; @@ -47,10 +47,10 @@ bool parseSegment( path, *index, &name, &setElement, &templateName); if (*index != -1) { *segment = Data::createSegment(templateName, name); - return *index == path.getLength(); + return *index == static_cast<sal_Int32>(path.size()); } } - throw css::uno::RuntimeException("bad path " + path); + throw css::uno::RuntimeException(OUString::Concat("bad path ") + path); } } |