summaryrefslogtreecommitdiff
path: root/idlc
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 /idlc
parent4c91b89d8ce9c34179f31854dc88bd0a9fa84cba (diff)
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 'idlc')
-rw-r--r--idlc/source/aststack.cxx4
-rw-r--r--idlc/source/idlccompile.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/idlc/source/aststack.cxx b/idlc/source/aststack.cxx
index f5a3315e3b24..464879794d53 100644
--- a/idlc/source/aststack.cxx
+++ b/idlc/source/aststack.cxx
@@ -38,7 +38,7 @@ AstStack::~AstStack()
delete m_stack[i];
}
- rtl_freeMemory(m_stack);
+ std::free(m_stack);
}
@@ -97,7 +97,7 @@ AstStack* AstStack::push(AstScope* pScope)
for(i=0; i < m_size; i++)
tmp[i] = m_stack[i];
- rtl_freeMemory(m_stack);
+ std::free(m_stack);
m_stack = tmp;
}
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index c8a389025325..8d6386b66a44 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -344,11 +344,11 @@ sal_Int32 compileFile(const OString * pathname)
pathname == nullptr ? "" : "file ", fileName.getStr());
osl_freeProcessHandle(hProcess);
- rtl_freeMemory(pCmdArgs);
+ std::free(pCmdArgs);
exit(hInfo.Code ? hInfo.Code : 99);
}
osl_freeProcessHandle(hProcess);
- rtl_freeMemory(pCmdArgs);
+ std::free(pCmdArgs);
if (unlink(tmpFile.getStr()) != 0)
{