Bug 574003 fix bustage with Sun Studio 12 r=surkov
authorGinn Chen <ginn.chen@sun.com>
Fri, 02 Jul 2010 18:55:43 +0800
changeset 47124 6c1fcdfdc2c878a0b0786b8709d9df251b490ae1
parent 47123 c173731c9d90c7e97c47f0a824b53f7f115b9e83
child 47125 f9a700607b86514c86ac85387f7d64206d7e23fa
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs574003
milestone2.0b2pre
first release with
nightly win64
6c1fcdfdc2c8 / 4.0b2pre / 20100702061718 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
Bug 574003 fix bustage with Sun Studio 12 r=surkov
accessible/src/base/nsAccessible.h
--- a/accessible/src/base/nsAccessible.h
+++ b/accessible/src/base/nsAccessible.h
@@ -257,22 +257,22 @@ public:
 
   /**
    * Return cached accessible of parent-child relatives.
    */
   nsAccessible* GetCachedParent() const { return mParent; }
   nsAccessible* GetCachedNextSibling() const
   {
     return mParent ?
-      mParent->mChildren.SafeElementAt(mIndexInParent + 1, nsnull) : nsnull;
+      mParent->mChildren.SafeElementAt(mIndexInParent + 1, nsnull).get() : nsnull;
   }
   nsAccessible* GetCachedPrevSibling() const
   {
     return mParent ?
-      mParent->mChildren.SafeElementAt(mIndexInParent - 1, nsnull) : nsnull;
+      mParent->mChildren.SafeElementAt(mIndexInParent - 1, nsnull).get() : nsnull;
   }
   PRUint32 GetCachedChildCount() const { return mChildren.Length(); }
   PRBool AreChildrenCached() const { return mAreChildrenInitialized; }
 
 #ifdef DEBUG
   /**
    * Return true if the access node is cached.
    */