From fb07854a7d5d1d29c6e346ef3ec8e027abbc636d Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Thu, 21 Aug 2014 22:41:00 -0700 Subject: [PATCH] Bug 1057224 - Pass actual class name for rdf ctor counting. r=nfroydnj We want to enforce valid names in these macros, so we need to use a valid type name here. --- rdf/base/nsInMemoryDataSource.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rdf/base/nsInMemoryDataSource.cpp b/rdf/base/nsInMemoryDataSource.cpp index 43f3cfc14c71..e41f94f39797 100644 --- a/rdf/base/nsInMemoryDataSource.cpp +++ b/rdf/base/nsInMemoryDataSource.cpp @@ -159,7 +159,7 @@ Assertion::Assertion(nsIRDFResource* aSource) mRefCnt(0), mHashEntry(true) { - MOZ_COUNT_CTOR(RDF_Assertion); + MOZ_COUNT_CTOR(Assertion); NS_ADDREF(mSource); @@ -176,7 +176,7 @@ Assertion::Assertion(nsIRDFResource* aSource, mRefCnt(0), mHashEntry(false) { - MOZ_COUNT_CTOR(RDF_Assertion); + MOZ_COUNT_CTOR(Assertion); u.as.mProperty = aProperty; u.as.mTarget = aTarget; @@ -199,7 +199,7 @@ Assertion::~Assertion() u.hash.mPropertyHash = nullptr; } - MOZ_COUNT_DTOR(RDF_Assertion); + MOZ_COUNT_DTOR(Assertion); #ifdef DEBUG_REFS --gInstanceCount; fprintf(stdout, "%d - RDF: Assertion\n", gInstanceCount);