Skip to content

Commit

Permalink
iox-eclipse-iceoryx#605 Rename 'addPointerIfIndexIsFree' to 'addPoint…
Browse files Browse the repository at this point in the history
…erIfIdIsFree'

Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
  • Loading branch information
mossmaurice committed Sep 29, 2022
1 parent bdbc4a0 commit 797d719
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class PointerRepository
iox::cxx::vector<Info, CAPACITY> m_info;
uint64_t m_maxRegistered{0U};

bool addPointerIfIndexIsFree(const id_t id, const ptr_t ptr, const uint64_t size) noexcept;
bool addPointerIfIdIsFree(const id_t id, const ptr_t ptr, const uint64_t size) noexcept;
};
} // namespace memory
} // namespace iox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inline bool PointerRepository<id_t, ptr_t, CAPACITY>::registerPtrWithId(const id
{
return false;
}
return addPointerIfIndexIsFree(id, ptr, size);
return addPointerIfIdIsFree(id, ptr, size);
}

template <typename id_t, typename ptr_t, uint64_t CAPACITY>
Expand All @@ -48,7 +48,7 @@ inline cxx::optional<id_t> PointerRepository<id_t, ptr_t, CAPACITY>::registerPtr
{
for (id_t id = 1U; id <= MAX_ID; ++id)
{
if (addPointerIfIndexIsFree(id, ptr, size))
if (addPointerIfIdIsFree(id, ptr, size))
{
return id;
}
Expand Down Expand Up @@ -115,7 +115,7 @@ inline id_t PointerRepository<id_t, ptr_t, CAPACITY>::searchId(ptr_t ptr) const
return RAW_POINTER_BEHAVIOUR_ID;
}
template <typename id_t, typename ptr_t, uint64_t CAPACITY>
inline bool PointerRepository<id_t, ptr_t, CAPACITY>::addPointerIfIndexIsFree(const id_t id,
inline bool PointerRepository<id_t, ptr_t, CAPACITY>::addPointerIfIdIsFree(const id_t id,
const ptr_t ptr,
const uint64_t size) noexcept
{
Expand Down

0 comments on commit 797d719

Please sign in to comment.