Bug 417122 – More prbool misuse in accessibility, patch=Taras Glek, r=aaronlev, a=mtschrep

git-svn-id: svn://10.0.0.236/trunk@246050 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
surkov.alexander%gmail.com 2008-02-20 07:50:45 +00:00
parent b8da64b9cd
commit 0934fa850f
3 changed files with 5 additions and 5 deletions

View File

@ -259,7 +259,7 @@ nsAccUtils::SetAccAttrsForXULContainerItem(nsIDOMNode *aNode,
PRBool
nsAccUtils::HasListener(nsIContent *aContent, const nsAString& aEventType)
{
NS_ENSURE_ARG_POINTER(aContent);
NS_ENSURE_TRUE(aContent, PR_FALSE);
nsCOMPtr<nsIEventListenerManager> listenerManager;
aContent->GetListenerManager(PR_FALSE, getter_AddRefs(listenerManager));
@ -319,8 +319,8 @@ PRBool
nsAccUtils::IsAncestorOf(nsIDOMNode *aPossibleAncestorNode,
nsIDOMNode *aPossibleDescendantNode)
{
NS_ENSURE_ARG_POINTER(aPossibleAncestorNode);
NS_ENSURE_ARG_POINTER(aPossibleDescendantNode);
NS_ENSURE_TRUE(aPossibleAncestorNode, PR_FALSE);
NS_ENSURE_TRUE(aPossibleDescendantNode, PR_FALSE);
nsCOMPtr<nsIDOMNode> loopNode = aPossibleDescendantNode;
nsCOMPtr<nsIDOMNode> parentNode;

View File

@ -921,7 +921,7 @@ PRBool nsHTMLTableAccessible::HasDescendant(char *aTagName, PRBool aAllowEmpty)
nsAutoString tagName;
tagName.AssignWithConversion(aTagName);
tableElt->GetElementsByTagName(tagName, getter_AddRefs(nodeList));
NS_ENSURE_TRUE(nodeList, NS_ERROR_FAILURE);
NS_ENSURE_TRUE(nodeList, PR_FALSE);
PRUint32 length;
nodeList->GetLength(&length);

View File

@ -878,7 +878,7 @@ nsXULTreeitemAccessible::IsDefunct()
PRBool nsXULTreeitemAccessible::IsExpandable()
{
if (IsDefunct())
return NS_ERROR_FAILURE;
return PR_FALSE;
PRBool isContainer;
mTreeView->IsContainer(mRow, &isContainer);