diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-08 13:49:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-09 09:08:56 +0200 |
commit | 2bf56582475179faa9d71573532a0d416cb64bfc (patch) | |
tree | 90fceed9ba89b865e713a6f8ab998c79d757abd7 /sal | |
parent | 7a16002ede5fd31ae8f3358136ad49de40465ac1 (diff) |
add a more complete o3tl::getToken
so we avoid OUString copying (mostly when doing stuff like parsing
numbers of out of strings)
Change-Id: I4ef6ac23671c0b40807a22158e655e92dfad4af6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132730
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/all/debugbase.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx index 208fa3e92a92..59848a883c9d 100644 --- a/sal/osl/all/debugbase.cxx +++ b/sal/osl/all/debugbase.cxx @@ -23,6 +23,7 @@ #include <osl/process.h> #include <osl/diagnose.hxx> #include <sal/log.hxx> +#include <o3tl/string_view.hxx> #include <algorithm> #include <vector> @@ -42,7 +43,7 @@ struct StaticDebugBaseAddressFilter sal_Int32 nIndex = 0; do { vec.push_back( OUStringToOString( - str.getToken( 0, ';', nIndex ), + o3tl::getToken(str, 0, ';', nIndex ), RTL_TEXTENCODING_ASCII_US ) ); } while (nIndex >= 0); |