mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 997963, part 9 - Make bundleCacheEntry_t FINAL, have COUNT_CTOR. r=ehsan
This commit is contained in:
parent
c3c25ff77d
commit
a969ec0a42
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user