diff --git a/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp b/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp index bf213d8ea62..700e45d4f6a 100644 --- a/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp +++ b/browser/components/bookmarks/src/nsBookmarksFeedHandler.cpp @@ -36,8 +36,6 @@ * ***** END LICENSE BLOCK ***** */ #include "nsBookmarksService.h" -#include "nsArrayEnumerator.h" -#include "nsArray.h" #include "nsIDOMWindow.h" #include "nsIObserverService.h" #include "nsIRDFContainer.h" diff --git a/browser/components/bookmarks/src/nsBookmarksService.cpp b/browser/components/bookmarks/src/nsBookmarksService.cpp index da162a74551..93709e30364 100644 --- a/browser/components/bookmarks/src/nsBookmarksService.cpp +++ b/browser/components/bookmarks/src/nsBookmarksService.cpp @@ -50,7 +50,7 @@ #include "nsBookmarksService.h" #include "nsArrayEnumerator.h" -#include "nsArray.h" +#include "nsIMutableArray.h" #include "nsVoidArray.h" #include "nsIBrowserHandler.h" #include "nsIDOMWindow.h" @@ -3052,8 +3052,8 @@ nsBookmarksService::GetParentChain(nsIRDFResource* aSource, nsIArray** aParents) return NS_ERROR_NULL_POINTER; nsresult rv; - nsCOMPtr parentArray; - rv = NS_NewArray(getter_AddRefs(parentArray)); + nsCOMPtr parentArray = + do_CreateInstance(NS_ARRAY_CONTRACTID, &rv); NS_ENSURE_SUCCESS(rv, NS_ERROR_OUT_OF_MEMORY); nsCOMPtr source = aSource, parent;