summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-14 15:08:56 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-15 11:11:08 +0200
commit8d279e8c4fbef0599d4d84c98695871fb5b42275 (patch)
treec44ccad93d76f68b9ad2d0613daf3a09d0d12269 /editeng
parent1d91ab661b2fe0f307c0742999b40e6d848117af (diff)
cid#1607843 Use of auto that causes a copy
and cid#1555160 Use of auto that causes a copy Change-Id: I2e2056ddbfb2d11d288a5b2df273e8bc049387fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170455 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 1c784db88ef3..19620ea093a0 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -1236,7 +1236,7 @@ namespace accessibility
// create sorted sequences according to index array
uno::Sequence<beans::PropertyValue> aNewValues( nLength );
std::transform(indices.begin(), indices.end(), aNewValues.getArray(),
- [&aRes](sal_Int32 index) { return aRes[index]; });
+ [&aRes](sal_Int32 index) -> const beans::PropertyValue& { return aRes[index]; });
return aNewValues;
}