Bug 8221. Fix false positive on the leak grep radar.

This commit is contained in:
waterson%netscape.com 1999-06-17 19:49:05 +00:00
parent 1b014f1bb5
commit 6b6dc2a655
3 changed files with 9 additions and 6 deletions

View File

@ -2640,8 +2640,9 @@ RDFElementImpl::ElementIsInDocument()
if (! root)
return PR_FALSE;
nsCOMPtr<nsIContent> node =
do_QueryInterface(NS_STATIC_CAST(nsIStyledContent*, this));
// Hack to get off scc's evil-use-of-do_QueryInterface() radar.
nsIStyledContent* p = NS_STATIC_CAST(nsIStyledContent*, this);
nsCOMPtr<nsIContent> node = do_QueryInterface(p);
while (node) {
if (node == root)

View File

@ -2640,8 +2640,9 @@ RDFElementImpl::ElementIsInDocument()
if (! root)
return PR_FALSE;
nsCOMPtr<nsIContent> node =
do_QueryInterface(NS_STATIC_CAST(nsIStyledContent*, this));
// Hack to get off scc's evil-use-of-do_QueryInterface() radar.
nsIStyledContent* p = NS_STATIC_CAST(nsIStyledContent*, this);
nsCOMPtr<nsIContent> node = do_QueryInterface(p);
while (node) {
if (node == root)

View File

@ -2640,8 +2640,9 @@ RDFElementImpl::ElementIsInDocument()
if (! root)
return PR_FALSE;
nsCOMPtr<nsIContent> node =
do_QueryInterface(NS_STATIC_CAST(nsIStyledContent*, this));
// Hack to get off scc's evil-use-of-do_QueryInterface() radar.
nsIStyledContent* p = NS_STATIC_CAST(nsIStyledContent*, this);
nsCOMPtr<nsIContent> node = do_QueryInterface(p);
while (node) {
if (node == root)