Remove unnecessary refcounting in IsSafeToFlush. Bug 311547, r+sr=peterv

This commit is contained in:
bzbarsky%mit.edu 2005-10-10 12:29:27 +00:00
parent b3f9b51f10
commit 594fa98ec0

View File

@ -4726,7 +4726,7 @@ nsDocument::IsSafeToFlush() const
PRBool isSafeToFlush = PR_TRUE;
PRInt32 i = 0, n = GetNumberOfShells();
while (i < n && isSafeToFlush) {
nsCOMPtr<nsIPresShell> shell = GetShellAt(i);
nsIPresShell* shell = GetShellAt(i);
if (shell) {
shell->IsSafeToFlush(isSafeToFlush);