mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 09:01:16 +00:00
Clean up an nsnull comparison.
This commit is contained in:
parent
b01dc22f0f
commit
3aade9514b
@ -47,8 +47,10 @@ NS_IMPL_RELEASE(nsNetConverterStream);
|
||||
nsresult nsNetConverterStream :: QueryInterface(const nsIID& aIID,
|
||||
void** aInstancePtrResult)
|
||||
{
|
||||
if (nsnull == aInstancePtrResult)
|
||||
if (!aInstancePtrResult)
|
||||
{
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
if (aIID.Equals(kISupportsIID))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user