Bug 205703: Reduce binarysize by not inlineing ExprResult::Release.

r/sr=peterv


git-svn-id: svn://10.0.0.236/trunk@145628 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sicking%bigfoot.com
2003-08-05 21:34:17 +00:00
parent 01bc272bdf
commit 92a3bdc409
2 changed files with 15 additions and 11 deletions

View File

@@ -62,17 +62,8 @@ public:
{
++mRefCnt;
}
void Release()
{
if (--mRefCnt == 0) {
if (mRecycler) {
mRecycler->recycle(this);
}
else {
delete this;
}
}
}
void Release(); // Implemented in txResultRecycler.cpp
/**
* Returns the type of ExprResult represented

View File

@@ -286,3 +286,16 @@ txResultRecycler::getNonSharedNodeSet(NodeSet* aNodeSet, NodeSet** aResult)
return NS_OK;
}
void
txAExprResult::Release()
{
if (--mRefCnt == 0) {
if (mRecycler) {
mRecycler->recycle(this);
}
else {
delete this;
}
}
}