Clean up C-style casts from pointers to void

Change-Id: Iacc2cfe28571d7fffc375ad9b7f3b0da735e093f
This commit is contained in:
Stephan Bergmann
2015-03-28 19:04:35 +01:00
parent 0fc0c5d4b2
commit 6f7d641da1
2 changed files with 3 additions and 3 deletions

View File

@@ -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];

View File

@@ -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();