From c65c1f4a6329c4f86600e4031d0e601db523d580 Mon Sep 17 00:00:00 2001 From: Jeff Ithier Date: Tue, 12 Nov 2024 14:39:12 +0100 Subject: [PATCH] [#490] Return ImmutableSlice in immutable payload() method of SampleMut --- iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp b/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp index 2451d3797..75235727e 100644 --- a/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp +++ b/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp @@ -225,7 +225,7 @@ inline auto SampleMut::payload() const -> iox::Immutable iox2_sample_mut_payload(&m_handle, &ptr, &number_of_elements); - return iox::ImmutableSlice(static_cast(ptr), number_of_elements); + return iox::ImmutableSlice(static_cast(ptr), number_of_elements); } template