From e53274868e0ec35156349826b0995bc444287690 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 30 Jul 2018 12:37:09 +0200 Subject: Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant) --- src/support/allocators/secure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/support') diff --git a/src/support/allocators/secure.h b/src/support/allocators/secure.h index a9aa928082..c6bd685189 100644 --- a/src/support/allocators/secure.h +++ b/src/support/allocators/secure.h @@ -37,7 +37,7 @@ struct secure_allocator : public std::allocator { 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(LockedPoolManager::Instance().alloc(sizeof(T) * n)); if (!allocation) { -- cgit v1.2.3