Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1391 Remove Axivion suppression by making pointer…
Browse files Browse the repository at this point in the history
… const

Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
  • Loading branch information
mossmaurice committed Oct 10, 2022
1 parent 0202007 commit dbfb343
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ inline const T* unique_ptr<T>::get() const noexcept
template <typename T>
inline T* unique_ptr<T>::release(unique_ptr&& ptrToBeReleased) noexcept
{
// AXIVION Next Line AutosarC++19_03-A7.1.1 : Pointer is explicitly not const to adhere to return type
auto* ptr = ptrToBeReleased.m_ptr;
auto* const ptr = ptrToBeReleased.m_ptr;
ptrToBeReleased.m_ptr = nullptr;
return ptr;
}
Expand Down

0 comments on commit dbfb343

Please sign in to comment.