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>
This commit is contained in:
Mike Kaganski
2021-10-29 09:53:10 +03:00
parent 881ea76399
commit 9a66812925

View File

@@ -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") + "/" +