Removed most of the static ctors
git-svn-id: svn://10.0.0.236/trunk@49058 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -146,16 +146,11 @@ void nsHTMLTokenizer::AddToken(CToken*& aToken,nsresult aResult,nsDeque& aDeque,
|
||||
* @return ptr to recycler (or null)
|
||||
*/
|
||||
nsITokenRecycler* nsHTMLTokenizer::GetTokenRecycler(void) {
|
||||
#if 0
|
||||
//let's move to this once we eliminate the leaking of tokens...
|
||||
static CTokenRecycler* gTokenRecycler=0;
|
||||
if(!gTokenRecycler)
|
||||
gTokenRecycler=new CTokenRecycler();
|
||||
return gTokenRecycler;
|
||||
#endif
|
||||
|
||||
static CTokenRecycler gTokenRecycler;
|
||||
return (nsITokenRecycler*)&gTokenRecycler;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user