CToken* theToken = (CStartToken*)gTokenRecycler->CreateTokenOfType(eToken_start,eHTMLTag_br); if(theToken){ aContext.mStartNode.Init(theToken); result=aSink.AddLeaf(aContext.mStartNode); gTokenRecycler->RecycleToken(theToken); }
CStartToken theToken(eHTMLTag_br); aContext.mStartNode.Init(&theToken); result=aSink.AddLeaf(aContext.mStartNode);
nsresult WriteNewline(nsIContentSink& aSink,CSharedVSContext& aContext) {  nsresult result=NS_OK;  //if you're here, we already know gTokenRecyler is valid...  CToken* theToken = (CStartToken*)gTokenRecycler->CreateTokenOfType(eToken_start,eHTMLTag_br);  if(theToken){    aContext.mStartNode.Init(theToken);    result=aSink.AddLeaf(aContext.mStartNode);     gTokenRecycler->RecycleToken(theToken);  }  return NS_OK;}