Boris Zbarsky wrote:

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?

Yes. Using nsDataHashtable<SomeKeyType, nsString> is safe (and not unusual).

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

Reply via email to