From b19fcf6669f9197d891db60ac5b8d4764eccafa9 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Mon, 21 Apr 2014 16:34:07 -0700 Subject: [PATCH] Bug 997963, part 9 - Make bundleCacheEntry_t FINAL, have COUNT_CTOR. r=ehsan --- intl/strres/src/nsStringBundle.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/intl/strres/src/nsStringBundle.cpp b/intl/strres/src/nsStringBundle.cpp index a5a856de1cb..ab0b3f01868 100644 --- a/intl/strres/src/nsStringBundle.cpp +++ b/intl/strres/src/nsStringBundle.cpp @@ -472,9 +472,19 @@ nsresult nsExtensibleStringBundle::GetSimpleEnumeration(nsISimpleEnumerator ** a #define MAX_CACHED_BUNDLES 16 -struct bundleCacheEntry_t : public LinkedListElement { +struct bundleCacheEntry_t MOZ_FINAL : public LinkedListElement { nsAutoPtr mHashKey; nsCOMPtr mBundle; + + bundleCacheEntry_t() + { + MOZ_COUNT_CTOR(bundleCacheEntry_t); + } + + ~bundleCacheEntry_t() + { + MOZ_COUNT_DTOR(bundleCacheEntry_t); + } };