Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)

This commit is contained in:
practicalswift
2018-07-30 12:37:09 +02:00
committed by fanquake
parent f436bfd126
commit e53274868e
8 changed files with 10 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ struct secure_allocator : public std::allocator<T> {
typedef secure_allocator<_Other> other;
};
T* allocate(std::size_t n, const void* hint = 0)
T* allocate(std::size_t n, const void* hint = nullptr)
{
T* allocation = static_cast<T*>(LockedPoolManager::Instance().alloc(sizeof(T) * n));
if (!allocation) {