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

git-svn-id: svn://10.0.0.236/trunk@181900 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2005-10-10 12:29:27 +00:00
parent 8a2c2a30b8
commit 1b846f42fe

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