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.
This commit is contained in:
Ralph Giles
2014-08-21 22:41:00 -07:00
parent 7a1450a56e
commit 18f7109dc7

View File

@@ -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);