Bug 342045 - solaris bustage fix, r=surkov
authorGinn Chen<ginn.chen@sun.com>
Sat, 12 Dec 2009 03:39:08 +0800
changeset 35585 eae814b48ddcdfcfdfa5890b94d2a4c3d3ac1464
parent 35584 8eb40c0a36501edf4b16b30a0dc110155b6e026c
child 35586 2000e14d36b22391e33edd4c985c9f34a7ae97a2
push idunknown
push userunknown
push dateunknown
reviewerssurkov
bugs342045
milestone1.9.3a1pre
Bug 342045 - solaris bustage fix, r=surkov
accessible/src/xul/nsXULTreeAccessible.cpp
accessible/src/xul/nsXULTreeGridAccessible.cpp
--- a/accessible/src/xul/nsXULTreeAccessible.cpp
+++ b/accessible/src/xul/nsXULTreeAccessible.cpp
@@ -1068,17 +1068,17 @@ nsXULTreeItemAccessibleBase::GetStateInt
     *aState |= nsIAccessibleStates::STATE_INVISIBLE;
 
   return NS_OK;
 }
 
 nsIAccessible*
 nsXULTreeItemAccessibleBase::GetParent()
 {
-  return IsDefunct() ? nsnull : mParent;
+  return IsDefunct() ? nsnull : mParent.get();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 // nsXULTreeItemAccessibleBase: nsAccessible protected methods
 
 void
 nsXULTreeItemAccessibleBase::DispatchClickEvent(nsIContent *aContent,
                                                 PRUint32 aActionIndex)
--- a/accessible/src/xul/nsXULTreeGridAccessible.cpp
+++ b/accessible/src/xul/nsXULTreeGridAccessible.cpp
@@ -1220,17 +1220,17 @@ nsXULTreeGridCellAccessible::GetStateInt
   }
 
   return NS_OK;
 }
 
 nsIAccessible*
 nsXULTreeGridCellAccessible::GetParent()
 {
-  return IsDefunct() ? nsnull : mParent;
+  return IsDefunct() ? nsnull : mParent.get();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 // nsXULTreeGridCellAccessible: public implementation
 
 PRInt32
 nsXULTreeGridCellAccessible::GetColumnIndex() const
 {