mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Bug 8221. Fix false positive on the leak grep radar.
This commit is contained in:
parent
1b014f1bb5
commit
6b6dc2a655
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user