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:
@@ -55,11 +55,11 @@ namespace {
|
|||||||
css::uno::Sequence<OUString> SetOfImplMatcherToStringSequence(const OpenCLConfig::ImplMatcherSet& rSet)
|
css::uno::Sequence<OUString> SetOfImplMatcherToStringSequence(const OpenCLConfig::ImplMatcherSet& rSet)
|
||||||
{
|
{
|
||||||
css::uno::Sequence<OUString> result(rSet.size());
|
css::uno::Sequence<OUString> result(rSet.size());
|
||||||
|
auto resultRange = asNonConstRange(result);
|
||||||
size_t n(0);
|
size_t n(0);
|
||||||
for (const auto& rItem : rSet)
|
for (const auto& rItem : rSet)
|
||||||
{
|
{
|
||||||
result[n++] =
|
resultRange[n++] =
|
||||||
rItem.maOS.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
|
rItem.maOS.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
|
||||||
rItem.maOSVersion.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
|
rItem.maOSVersion.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
|
||||||
rItem.maPlatformVendor.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
|
rItem.maPlatformVendor.replaceAll("%", "%25").replaceAll("/", "%2F").replaceAll(";", "%3B") + "/" +
|
||||||
|
Reference in New Issue
Block a user