Clean up C-style casts from pointers to void
Change-Id: Iacc2cfe28571d7fffc375ad9b7f3b0da735e093f
This commit is contained in:
@@ -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];
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user