Bug 396710 - Compiling nsAppShell.mm results in cast error. r=smichaud, sr=roc, a=roc

This commit is contained in:
edward.lee@engineering.uiuc.edu 2007-09-27 15:46:23 -07:00
parent e914cf6bf2
commit 15a38c69aa

View File

@ -626,9 +626,8 @@ nsAppShell::AfterProcessNextEvent(nsIThreadInternal *aThread,
NS_ASSERTION(mAutoreleasePools && count,
"Processed an event, but there's no autorelease pool?");
NSAutoreleasePool* pool = static_cast<const NSAutoreleasePool*>
(::CFArrayGetValueAtIndex(mAutoreleasePools,
count - 1));
const NSAutoreleasePool* pool = static_cast<const NSAutoreleasePool*>
(::CFArrayGetValueAtIndex(mAutoreleasePools, count - 1));
::CFArrayRemoveValueAtIndex(mAutoreleasePools, count - 1);
[pool release];