include/static/unoembindhelpers/PrimaryBindings.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7d0f92545373941637879cbfb1f907f3f35604d6 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Fri Feb 23 11:47:59 2024 +0100 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Fri Feb 23 13:33:04 2024 +0100 Propagate by-ref Sequence::operator[] return type through lambda Change-Id: I029ae2ff5ab6f73681afc5920dc9aba90cd32539 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163814 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de> diff --git a/include/static/unoembindhelpers/PrimaryBindings.hxx b/include/static/unoembindhelpers/PrimaryBindings.hxx index 4df301277cc9..80b55d5278ac 100644 --- a/include/static/unoembindhelpers/PrimaryBindings.hxx +++ b/include/static/unoembindhelpers/PrimaryBindings.hxx @@ -104,7 +104,7 @@ template <typename T> void registerSequence(char const* name) }) .function("size", &css::uno::Sequence<T>::getLength) .function("get", - +[](css::uno::Sequence<T> const& self, sal_Int32 index) { + +[](css::uno::Sequence<T> const& self, sal_Int32 index) -> T const& { checkSequenceAccess(self, index); return self[index]; })