diff --git a/accessible/base/AccIterator.cpp b/accessible/base/AccIterator.cpp index e2f3cd05cc89..f6e890c5023c 100644 --- a/accessible/base/AccIterator.cpp +++ b/accessible/base/AccIterator.cpp @@ -96,8 +96,7 @@ RelatedAccIterator::Next() return nullptr; while (mIndex < mProviders->Length()) { - const std::unique_ptr& provider = - (*mProviders)[mIndex++]; + DocAccessible::AttrRelProvider* provider = (*mProviders)[mIndex++]; // Return related accessible for the given attribute and if the provider // content is in the same binding in the case of XBL usage. diff --git a/accessible/generic/DocAccessible.cpp b/accessible/generic/DocAccessible.cpp index 7f54c605b012..b957b044a1fa 100644 --- a/accessible/generic/DocAccessible.cpp +++ b/accessible/generic/DocAccessible.cpp @@ -120,7 +120,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(DocAccessible, Accessible) NS_CYCLE_COLLECTION_NOTE_EDGE_NAME( cb, "content of dependent ids hash entry of document accessible"); - AttrRelProvider* provider = (*providers)[jdx].get(); + AttrRelProvider* provider = (*providers)[jdx]; cb.NoteXPCOMChild(provider->mContent); NS_ASSERTION(provider->mContent->IsInUncomposedDoc(), @@ -1571,10 +1571,10 @@ DocAccessible::RemoveDependentIDsFor(Accessible* aRelProvider, AttrRelProviderArray* providers = mDependentIDsHash.Get(id); if (providers) { for (uint32_t jdx = 0; jdx < providers->Length(); ) { - const std::unique_ptr& provider = (*providers)[jdx]; + AttrRelProvider* provider = (*providers)[jdx]; if (provider->mRelAttr == relAttr && provider->mContent == relProviderElm) - providers->RemoveElementAt(jdx); + providers->RemoveElement(provider); else jdx++; } diff --git a/accessible/generic/DocAccessible.h b/accessible/generic/DocAccessible.h index 6341f8892b52..1cfdbfc98a47 100644 --- a/accessible/generic/DocAccessible.h +++ b/accessible/generic/DocAccessible.h @@ -11,7 +11,7 @@ #include "HyperTextAccessibleWrap.h" #include "AccEvent.h" -#include +#include "nsAutoPtr.h" #include "nsClassHashtable.h" #include "nsDataHashtable.h" #include "nsIDocument.h" @@ -671,7 +671,7 @@ protected: /** * The cache of IDs pointed by relation attributes. */ - typedef nsTArray> AttrRelProviderArray; + typedef nsTArray > AttrRelProviderArray; nsClassHashtable mDependentIDsHash;