Make that NS_ENSURE_SUCCESS() so we know if this fails...
git-svn-id: svn://10.0.0.236/trunk@110578 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
bbad2f3c44
commit
fb81748382
@ -132,8 +132,7 @@ nsTextNode::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
||||
{
|
||||
nsCOMPtr<nsITextContent> textContent;
|
||||
nsresult rv = CloneContent(PR_TRUE, getter_AddRefs(textContent));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
return CallQueryInterface(textContent, aReturn);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user