Re: nsIAtom has been deCOMtaminated and is now called nsAtom
On Mon, Oct 9, 2017 at 1:32 PM, Kyle Hueywrote: > > You couldn't get to mozilla::Atom? > See https://bugzilla.mozilla.org/show_bug.cgi?id=1400460#c2. Nick ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
Re: nsIAtom has been deCOMtaminated and is now called nsAtom
Awesome! You couldn't get to mozilla::Atom? - Kyle On Oct 8, 2017 7:27 PM, "Nicholas Nethercote"wrote: > Greetings, > > I have been deCOMtaminating nsIAtom over the past two months: > https://bugzilla.mozilla.org/show_bug.cgi?id=1392883. > > A big step that landed over a week ago was the devirtualization of nsIAtom, > which means it is no longer a subclass of nsISupports: > https://bugzilla.mozilla.org/show_bug.cgi?id=1400459. > > And I just landed (on autoland) the final step of renaming nsIAtom as > nsAtom. This is tracked at > https://bugzilla.mozilla.org/show_bug.cgi?id=1400460. > > Apologies for any conflicts or problems caused in outstanding patches. For > patches less than 1.5 weeks old (i.e. post-devirtualization) it's very > likely that simply replacing all nsIAtom occurrences with nsAtom will > suffice. For patches older than that here is a summary of changes that > might be required. > > - nsIAtom --> nsAtom > > - nsCOMPtr --> RefPtr > > - nsCOMArray --> nsTArray > - Count() --> Length() > - ObjectAt() --> ElementAt() > - AppendObject() --> AppendElement() > - RemoveObjectAt() --> RemoveElementAt() > > - ns*Hashtable --> > ns*Hashtable > > - nsInterfaceHashtable --> nsRefPtrHashtable > > # If the array contains atoms. > - nsCOMPtr --> nsTArray > - nsArrayBase::Create() --> nsTArray() > - GetLength() --> Length() > - do_QueryElementAt() --> operator[] > > Nick > ___ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform
nsIAtom has been deCOMtaminated and is now called nsAtom
Greetings, I have been deCOMtaminating nsIAtom over the past two months: https://bugzilla.mozilla.org/show_bug.cgi?id=1392883. A big step that landed over a week ago was the devirtualization of nsIAtom, which means it is no longer a subclass of nsISupports: https://bugzilla.mozilla.org/show_bug.cgi?id=1400459. And I just landed (on autoland) the final step of renaming nsIAtom as nsAtom. This is tracked at https://bugzilla.mozilla.org/show_bug.cgi?id=1400460. Apologies for any conflicts or problems caused in outstanding patches. For patches less than 1.5 weeks old (i.e. post-devirtualization) it's very likely that simply replacing all nsIAtom occurrences with nsAtom will suffice. For patches older than that here is a summary of changes that might be required. - nsIAtom --> nsAtom - nsCOMPtr --> RefPtr - nsCOMArray --> nsTArray- Count() --> Length() - ObjectAt() --> ElementAt() - AppendObject() --> AppendElement() - RemoveObjectAt() --> RemoveElementAt() - ns*Hashtable --> ns*Hashtable - nsInterfaceHashtable --> nsRefPtrHashtable # If the array contains atoms. - nsCOMPtr --> nsTArray - nsArrayBase::Create() --> nsTArray() - GetLength() --> Length() - do_QueryElementAt() --> operator[] Nick ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform