diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-28 12:38:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-28 17:32:18 +0100 |
commit | 943060836339f9640c612e9724f20e79db616e6e (patch) | |
tree | 3dc6e7748aef3ef0f2fca86979792162daa443fc /opencl/source/openclconfig.cxx | |
parent | d249bd5a3dfe13052ce9aa91bad94ec7d60604d4 (diff) |
simplify code, use more subView()
Change-Id: I569c7f34acbdf8451cd5c9acf1abd334637072d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110051
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'opencl/source/openclconfig.cxx')
-rw-r--r-- | opencl/source/openclconfig.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/source/openclconfig.cxx b/opencl/source/openclconfig.cxx index 46f1ef90a576..4403c1d98e1a 100644 --- a/opencl/source/openclconfig.cxx +++ b/opencl/source/openclconfig.cxx @@ -80,7 +80,7 @@ OUString getToken(const OUString& string, sal_Int32& index) while ((p = token.indexOf('%', i)) >= 0) { if (p > i) - result.append(std::u16string_view(token).substr(i, p - i)); + result.append(token.subView(i, p - i)); if (p < token.getLength() - 2) { result.append(sal_Unicode(token.copy(p+1, 2).toInt32(16))); @@ -91,7 +91,7 @@ OUString getToken(const OUString& string, sal_Int32& index) i = token.getLength(); } } - result.append(std::u16string_view(token).substr(i)); + result.append(token.subView(i)); return result.makeStringAndClear(); } |