mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00

ScopedAutoSECItem is useful for getting rid of this pattern: > ScopedSECItem item(SECITEM_AllocItem(nullptr, nullptr, 0)); While this pattern works, ScopedAutoSECItem is slightly superior in that it doesn't unnecessarily cause a SECItem to be allocated from the heap. Moreover, this moves us further away from Scoped.h, which is deprecated. MozReview-Commit-ID: B30MNTHzzTc --HG-- extra : rebase_source : 8d6dea205fc8800a46104b48c670eff250a4731a