Skip to content

Commit

Permalink
iox-eclipse-iceoryx#605 change return type of get method to const void*
Browse files Browse the repository at this point in the history
Signed-off-by: Marika Lehmann <[email protected]>
  • Loading branch information
FerdinandSpitzschnueffler committed Mar 19, 2021
1 parent da2ce66 commit ee5f202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class BaseRelocatablePointer

/// @brief access to the underlying object in shared memory
/// @return a pointer to the underlying object
void* get() const noexcept;
const void* get() const noexcept;

/// @brief returns the offset
/// @return offset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ bool BaseRelocatablePointer::operator!() const noexcept
return !(operator bool());
}

void* BaseRelocatablePointer::get() const noexcept
const void* BaseRelocatablePointer::get() const noexcept
{
return computeRawPtr();
}
Expand Down

0 comments on commit ee5f202

Please sign in to comment.