summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 09:53:10 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 21:55:44 +0200
commit9a668129259eeba1a05745b7cd820fccf3043f45 (patch)
tree5779418b5790be82027f65e676d6be0edbda6ba0 /opencl
parent881ea76399a76599e17688f335f4f164d4d29413 (diff)
Prepare for removal of non-const operator[] from Sequence in opencl
Change-Id: Id58484eb9b955948a8edb48000b86cec3b721060 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124377 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'opencl')
-rw-r--r--opencl/source/openclconfig.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/source/openclconfig.cxx b/opencl/source/openclconfig.cxx
index 5467fc5e83c9..9c4452c153d3 100644
--- a/opencl/source/openclconfig.cxx
+++ b/opencl/source/openclconfig.cxx
@@ -55,11 +55,11 @@ namespace {
css::uno::Sequence<OUString> SetOfImplMatcherToStringSequence(const OpenCLConfig::ImplMatcherSet& rSet)
{
css::uno::Sequence<OUString> result(rSet.size());
-
+ auto resultRange = asNonConstRange(result);
size_t n(0);
for (const auto& rItem : rSet)
{
- result[n++] =
+ resultRange[n++] =
rItem.maOS.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
rItem.maOSVersion.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
rItem.maPlatformVendor.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +