Fix silly warning.

This commit is contained in:
rjc%netscape.com 1999-12-01 11:25:27 +00:00
parent 23d9c88494
commit c71c2c207e
2 changed files with 8 additions and 8 deletions

View File

@ -1917,11 +1917,11 @@ InternetSearchDataSourceCallback::OnStopRequest(nsIChannel* channel, nsISupports
}
// copy the engine's icon reference (if it has one) onto the result node
nsCOMPtr<nsIRDFNode> engineIconNode = nsnull;
mDataSource->GetTarget(mEngine, kNC_Icon, PR_TRUE, getter_AddRefs(engineIconNode));
if (engineIconNode)
nsCOMPtr<nsIRDFNode> engineIconStatusNode = nsnull;
mDataSource->GetTarget(mEngine, kNC_Icon, PR_TRUE, getter_AddRefs(engineIconStatusNode));
if (engineIconStatusNode)
{
rv = mDataSource->Assert(mEngine, kNC_StatusIcon, engineIconNode, PR_TRUE);
rv = mDataSource->Assert(mEngine, kNC_StatusIcon, engineIconStatusNode, PR_TRUE);
}
if (mBuffer.Length() < 1)

View File

@ -1917,11 +1917,11 @@ InternetSearchDataSourceCallback::OnStopRequest(nsIChannel* channel, nsISupports
}
// copy the engine's icon reference (if it has one) onto the result node
nsCOMPtr<nsIRDFNode> engineIconNode = nsnull;
mDataSource->GetTarget(mEngine, kNC_Icon, PR_TRUE, getter_AddRefs(engineIconNode));
if (engineIconNode)
nsCOMPtr<nsIRDFNode> engineIconStatusNode = nsnull;
mDataSource->GetTarget(mEngine, kNC_Icon, PR_TRUE, getter_AddRefs(engineIconStatusNode));
if (engineIconStatusNode)
{
rv = mDataSource->Assert(mEngine, kNC_StatusIcon, engineIconNode, PR_TRUE);
rv = mDataSource->Assert(mEngine, kNC_StatusIcon, engineIconStatusNode, PR_TRUE);
}
if (mBuffer.Length() < 1)