summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/file.cxx')
-rw-r--r--sal/osl/unx/file.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index f95651dab55a..17790211b02d 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -200,12 +200,10 @@ FileHandle_Impl::Allocator::~Allocator()
void FileHandle_Impl::Allocator::allocate(sal_uInt8 **ppBuffer, size_t *pnSize)
{
- SAL_WARN_IF((!ppBuffer) || (!pnSize), "sal.osl", "FileHandle_Impl::Allocator::allocate(): contract violation");
- if (ppBuffer && pnSize)
- {
- *ppBuffer = static_cast< sal_uInt8* >(rtl_cache_alloc(m_cache));
- *pnSize = m_bufsiz;
- }
+ assert(ppBuffer != nullptr);
+ assert(pnSize != nullptr);
+ *ppBuffer = static_cast< sal_uInt8* >(rtl_cache_alloc(m_cache));
+ *pnSize = m_bufsiz;
}
void FileHandle_Impl::Allocator::deallocate(sal_uInt8 * pBuffer)