summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-28 09:09:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-29 09:05:39 +0200
commit37f9fdc11c4e95d6a34cb515a454503256a82c63 (patch)
tree35099c65caf4c62451a5b7a7c0bac249473c9733 /io
parentnew loplugin:oustringbuffer (diff)
downloadcore-37f9fdc11c4e95d6a34cb515a454503256a82c63.tar.gz
core-37f9fdc11c4e95d6a34cb515a454503256a82c63.zip
replace rtl_allocateMemory with std::malloc
where used directly, since rtl_allocateMemory now just calls into std::malloc Change-Id: I59f85bdb7efdf6baa30e8fcd2370c0f8e9c999ad Reviewed-on: https://gerrit.libreoffice.org/59685 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r--io/source/stm/streamhelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx
index ffd1726c6754..0ef0d3e1f7ae 100644
--- a/io/source/stm/streamhelper.cxx
+++ b/io/source/stm/streamhelper.cxx
@@ -58,9 +58,7 @@ MemRingBuffer::MemRingBuffer()
MemRingBuffer::~MemRingBuffer()
{
- if( m_p ) {
- rtl_freeMemory( m_p );
- }
+ std::free( m_p );
}
void MemRingBuffer::resizeBuffer( sal_Int32 nMinSize )
@@ -77,7 +75,7 @@ void MemRingBuffer::resizeBuffer( sal_Int32 nMinSize )
}
if( nNewLen != m_nBufferLen ) {
- m_p = static_cast<sal_Int8 *>(rtl_reallocateMemory( m_p , nNewLen ));
+ m_p = static_cast<sal_Int8 *>(std::realloc( m_p , nNewLen ));
if( !m_p ) {
throw css::io::BufferSizeExceededException(
"MemRingBuffer::resizeBuffer BufferSizeExceededException");