mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
making linux and mac compilers happy.
This commit is contained in:
parent
4d309f05f8
commit
06b3ded6e8
@ -982,7 +982,7 @@ PRInt32 nsZipArchive::BuildFileList()
|
||||
#ifndef STANDALONE
|
||||
// Arena allocate the nsZipItem
|
||||
void *mem;
|
||||
PL_ARENA_ALLOCATE(mem, &mArena, sizeof nsZipItem);
|
||||
PL_ARENA_ALLOCATE(mem, &mArena, sizeof(nsZipItem));
|
||||
// Use placement new to arena allcoate the nsZipItem
|
||||
nsZipItem* item = mem ? new (mem) nsZipItem() : nsnull;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user