Bug 1057224 - Pass actual class name for rdf ctor counting. r=froydnj

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
Родитель 456c6dfc7e
Коммит c2e4425290
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

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