Remove reduntant inline specifier

This commit is contained in:
FutureRave 2022-03-23 13:00:59 +00:00
parent 26abb3a352
commit d7c63b2f8e
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -22,13 +22,13 @@ namespace utils
void* allocate(size_t length);
template <typename T>
inline T* allocate()
T* allocate()
{
return this->allocate_array<T>(1);
}
template <typename T>
inline T* allocate_array(const size_t count = 1)
T* allocate_array(const size_t count = 1)
{
return static_cast<T*>(this->allocate(count * sizeof(T)));
}
@ -45,13 +45,13 @@ namespace utils
static void* allocate(size_t length);
template <typename T>
static inline T* allocate()
static T* allocate()
{
return allocate_array<T>(1);
}
template <typename T>
static inline T* allocate_array(const size_t count = 1)
static T* allocate_array(const size_t count = 1)
{
return static_cast<T*>(allocate(count * sizeof(T)));
}