Skip to content

Commit

Permalink
Rename function arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Nov 12, 2023
1 parent 69c21cb commit e4d3b61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/subprojects/common/include/mlrl/common/util/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ static inline constexpr T* allocateMemory(uint32 numElements, bool init = false)
* @return A pointer to the reallocated memory
*/
template<typename T>
static inline constexpr T* reallocateMemory(T* ptr, uint32 numElements) {
return (T*) realloc(ptr, numElements * sizeof(T));
static inline constexpr T* reallocateMemory(T* array, uint32 numElements) {
return (T*) realloc(array, numElements * sizeof(T));
}

/**
Expand All @@ -44,8 +44,8 @@ static inline constexpr T* reallocateMemory(T* ptr, uint32 numElements) {
* @param array A pointer to an array of template type `T`
*/
template<typename T>
static inline constexpr void freeMemory(T* ptr) {
if (ptr) {
free(ptr);
static inline constexpr void freeMemory(T* array) {
if (array) {
free(array);
}
}

0 comments on commit e4d3b61

Please sign in to comment.