Benjamin Smedberg wrote:
nsClassHashtable "owns" the pointers, and "delete"s them when an entry is removed.

nsDataHashtable just holds a type in the entry.

Which one you use depends on your needs in terms of cleaning up entries.

I think the question was whether nsDataHashtable is safe to use with nsString as the type.

I almost want to say yes, for the same reason that it's safe to have nsString members, but does nsDataHashtable call the type destructor as needed?

-Boris
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to