Bug 997963, part 9 - Make bundleCacheEntry_t FINAL, have COUNT_CTOR. r=ehsan

This commit is contained in:
Andrew McCreight 2014-04-21 16:34:07 -07:00
parent c669a16e2d
commit b19fcf6669

View File

@ -472,9 +472,19 @@ nsresult nsExtensibleStringBundle::GetSimpleEnumeration(nsISimpleEnumerator ** a
#define MAX_CACHED_BUNDLES 16
struct bundleCacheEntry_t : public LinkedListElement<bundleCacheEntry_t> {
struct bundleCacheEntry_t MOZ_FINAL : public LinkedListElement<bundleCacheEntry_t> {
nsAutoPtr<nsCStringKey> mHashKey;
nsCOMPtr<nsIStringBundle> mBundle;
bundleCacheEntry_t()
{
MOZ_COUNT_CTOR(bundleCacheEntry_t);
}
~bundleCacheEntry_t()
{
MOZ_COUNT_DTOR(bundleCacheEntry_t);
}
};