[Libreoffice-commits] core.git: sal/osl
Chris Sherlock
chris.sherlock79 at gmail.com
Tue Jul 18 02:36:18 UTC 2017
sal/osl/unx/file.cxx | 4 ++--
sal/osl/w32/file.cxx | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 871f1f727f0763ffec510757933f1acf22485a59
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Tue Jul 18 12:32:27 2017 +1000
Followup to final followup 647382f52351a75 of my followup
Change-Id: I0ee075cadb26eb0ceedec1dd047fc157f3929dad
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);
}
More information about the Libreoffice-commits
mailing list