diff options
-rw-r--r-- | sal/osl/unx/file.cxx | 4 | ||||
-rw-r--r-- | sal/osl/w32/file.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 17790211b02d..35d620813cfa 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -200,8 +200,8 @@ FileHandle_Impl::Allocator::~Allocator() void FileHandle_Impl::Allocator::allocate(sal_uInt8 **ppBuffer, size_t *pnSize) { - assert(ppBuffer != nullptr); - assert(pnSize != nullptr); + assert(ppBuffer); + assert(pnSize); *ppBuffer = static_cast< sal_uInt8* >(rtl_cache_alloc(m_cache)); *pnSize = m_bufsiz; } diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx index 3738683402af..5a5a16b9f9c0 100644 --- a/sal/osl/w32/file.cxx +++ b/sal/osl/w32/file.cxx @@ -181,8 +181,8 @@ FileHandle_Impl::Allocator::~Allocator() void FileHandle_Impl::Allocator::allocate (sal_uInt8 **ppBuffer, SIZE_T * pnSize) { - assert(ppBuffer != nullptr); - assert(pnSize != nullptr); + assert(ppBuffer); + assert(pnSize); *ppBuffer = static_cast< sal_uInt8* >(rtl_cache_alloc(m_cache)); *pnSize = m_bufsiz; } @@ -196,7 +196,7 @@ void FileHandle_Impl::Allocator::deallocate (sal_uInt8 * pBuffer) FileHandle_Impl::Guard::Guard(LPCRITICAL_SECTION pMutex) : m_mutex (pMutex) { - assert(pMutex != nullptr); + assert(pMutex); ::EnterCriticalSection (m_mutex); } |