mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports * fix: build * chore: fix build * chore: size_t -> std::size_t * chore: fix fuckup from previous commit * chore: fix build * chore: fix build * chore: fix build * chore: fix build with std::size_t * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include <mm_malloc.h>
|
||||
#elif defined(__GNUC__)
|
||||
static __inline__ void *__attribute__((__always_inline__, __nodebug__, __malloc__))
|
||||
_mm_malloc(size_t __size, size_t __align)
|
||||
_mm_malloc(std::size_t __size, std::size_t __align)
|
||||
{
|
||||
if (__align == 1)
|
||||
{
|
||||
@@ -78,7 +78,7 @@ uint32 SFMTRand::RandomUInt32() // Output random bits
|
||||
return sfmt_genrand_uint32(&_state);
|
||||
}
|
||||
|
||||
void* SFMTRand::operator new(size_t size, std::nothrow_t const&)
|
||||
void* SFMTRand::operator new(std::size_t size, std::nothrow_t const&)
|
||||
{
|
||||
return _mm_malloc(size, 16);
|
||||
}
|
||||
@@ -88,7 +88,7 @@ void SFMTRand::operator delete(void* ptr, std::nothrow_t const&)
|
||||
_mm_free(ptr);
|
||||
}
|
||||
|
||||
void* SFMTRand::operator new(size_t size)
|
||||
void* SFMTRand::operator new(std::size_t size)
|
||||
{
|
||||
return _mm_malloc(size, 16);
|
||||
}
|
||||
@@ -98,7 +98,7 @@ void SFMTRand::operator delete(void* ptr)
|
||||
_mm_free(ptr);
|
||||
}
|
||||
|
||||
void* SFMTRand::operator new[](size_t size, std::nothrow_t const&)
|
||||
void* SFMTRand::operator new[](std::size_t size, std::nothrow_t const&)
|
||||
{
|
||||
return _mm_malloc(size, 16);
|
||||
}
|
||||
@@ -108,7 +108,7 @@ void SFMTRand::operator delete[](void* ptr, std::nothrow_t const&)
|
||||
_mm_free(ptr);
|
||||
}
|
||||
|
||||
void* SFMTRand::operator new[](size_t size)
|
||||
void* SFMTRand::operator new[](std::size_t size)
|
||||
{
|
||||
return _mm_malloc(size, 16);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user