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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user