зеркало из https://github.com/mozilla/gecko-dev.git
Bug 133711 Unreachable statement (duplicate return) in nsXULAttribute and nsSVGAttributes (Bugs found via linting....)
patch by riceman+bmo@mail.rit.edu r=timeless sr=bz
This commit is contained in:
Родитель
33e7c21a66
Коммит
51b1da374a
|
@ -926,14 +926,12 @@ nsSVGAttributes::RemoveNamedItem(const nsAString& aName,
|
|||
nsIDOMNode** aReturn)
|
||||
{
|
||||
nsCOMPtr<nsIDOMElement> element( do_QueryInterface(mContent) );
|
||||
*aReturn = nsnull;
|
||||
if (element) {
|
||||
// XXX should set aReturn to the element we are about to remove
|
||||
return element->RemoveAttribute(aName);
|
||||
*aReturn = nsnull; // XXX should be the element we just removed
|
||||
return NS_OK;
|
||||
}
|
||||
else {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -682,14 +682,12 @@ nsXULAttributes::RemoveNamedItem(const nsAString& aName,
|
|||
nsIDOMNode** aReturn)
|
||||
{
|
||||
nsCOMPtr<nsIDOMElement> element( do_QueryInterface(mContent) );
|
||||
*aReturn = nsnull;
|
||||
if (element) {
|
||||
// XXX should set aReturn to the element we are about to remove
|
||||
return element->RemoveAttribute(aName);
|
||||
*aReturn = nsnull; // XXX should be the element we just removed
|
||||
return NS_OK;
|
||||
}
|
||||
else {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче