Bug 378563 warning in getNameCB when opening a new pager=aaronleventhal

This commit is contained in:
ginn.chen@sun.com 2007-04-24 21:19:26 -07:00
parent eb7749a57b
commit 6aeb263096
2 changed files with 7 additions and 4 deletions

View File

@ -55,7 +55,9 @@ nsOuterDocAccessible::nsOuterDocAccessible(nsIDOMNode* aNode,
/* attribute wstring accName; */
NS_IMETHODIMP nsOuterDocAccessible::GetName(nsAString& aName)
{
nsCOMPtr<nsIAccessibleDocument> accDoc(do_QueryInterface(mFirstChild));
nsCOMPtr<nsIAccessible> accessible;
GetFirstChild(getter_AddRefs(accessible));
nsCOMPtr<nsIAccessibleDocument> accDoc(do_QueryInterface(accessible));
if (!accDoc) {
return NS_ERROR_FAILURE;
}

View File

@ -214,9 +214,10 @@ NS_IMETHODIMP nsXULTabPanelsAccessible::GetRole(PRUint32 *aRole)
* the panel. XXX not sure if the "panels" object should have the
* same name.
*/
NS_IMETHODIMP nsXULTabPanelsAccessible::GetName(nsAString& _retval)
NS_IMETHODIMP nsXULTabPanelsAccessible::GetName(nsAString& aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
aName.Truncate();
return NS_OK;
}
/**