From e4d3b610d8475a3d49c4e5002b40c25803d45ed5 Mon Sep 17 00:00:00 2001 From: Michael Rapp Date: Sun, 12 Nov 2023 14:19:07 +0100 Subject: [PATCH] Rename function arguments. --- .../common/include/mlrl/common/util/memory.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/subprojects/common/include/mlrl/common/util/memory.hpp b/cpp/subprojects/common/include/mlrl/common/util/memory.hpp index 688bf786ac..e9241539b8 100644 --- a/cpp/subprojects/common/include/mlrl/common/util/memory.hpp +++ b/cpp/subprojects/common/include/mlrl/common/util/memory.hpp @@ -33,8 +33,8 @@ static inline constexpr T* allocateMemory(uint32 numElements, bool init = false) * @return A pointer to the reallocated memory */ template -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)); } /** @@ -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 -static inline constexpr void freeMemory(T* ptr) { - if (ptr) { - free(ptr); +static inline constexpr void freeMemory(T* array) { + if (array) { + free(array); } }