diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:04:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:21 +0100 |
commit | 6f7d641da14f595efdc32ee5160fc053096e291f (patch) | |
tree | 5d45083dda921031b183369af662a2cac5f79d1f /idlc | |
parent | 0fc0c5d4b2122478fcecee830e1d8ffdcf71f9cb (diff) |
Clean up C-style casts from pointers to void
Change-Id: Iacc2cfe28571d7fffc375ad9b7f3b0da735e093f
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/aststack.cxx | 4 | ||||
-rw-r--r-- | idlc/source/idlccompile.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/idlc/source/aststack.cxx b/idlc/source/aststack.cxx index 402d05a0bf64..e971152b8715 100644 --- a/idlc/source/aststack.cxx +++ b/idlc/source/aststack.cxx @@ -24,7 +24,7 @@ #define STACKSIZE_INCREMENT 64 AstStack::AstStack() - : m_stack((AstScope**)rtl_allocateZeroMemory(sizeof(AstScope*) * STACKSIZE_INCREMENT)) + : m_stack(static_cast<AstScope**>(rtl_allocateZeroMemory(sizeof(AstScope*) * STACKSIZE_INCREMENT))) , m_size(STACKSIZE_INCREMENT) , m_top(0) { @@ -92,7 +92,7 @@ AstStack* AstStack::push(AstScope* pScope) { newSize = m_size; newSize += STACKSIZE_INCREMENT; - tmp = (AstScope**)rtl_allocateZeroMemory(sizeof(AstScope*) * newSize); + tmp = static_cast<AstScope**>(rtl_allocateZeroMemory(sizeof(AstScope*) * newSize)); for(i=0; i < m_size; i++) tmp[i] = m_stack[i]; diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 3d4ef7d22b1a..fd4b58b72bc2 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -320,7 +320,7 @@ sal_Int32 compileFile(const OString * pathname) const int nCmdArgs = lCppArgs.size(); rtl_uString** pCmdArgs = 0; - pCmdArgs = (rtl_uString**)rtl_allocateZeroMemory(nCmdArgs * sizeof(rtl_uString*)); + pCmdArgs = static_cast<rtl_uString**>(rtl_allocateZeroMemory(nCmdArgs * sizeof(rtl_uString*))); ::std::vector< OUString >::iterator iter = lCppArgs.begin(); ::std::vector< OUString >::iterator end = lCppArgs.end(); |