diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-02-23 11:47:59 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-02-23 13:33:04 +0100 |
commit | 7d0f92545373941637879cbfb1f907f3f35604d6 (patch) | |
tree | 3a91943eafbdf96171595b17d8d64f9bfe92902d /include | |
parent | 4a90f9044a6226088ab42744c226b6fa57b7cc3f (diff) |
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.bergmann@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/static/unoembindhelpers/PrimaryBindings.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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]; }) |