Changed some code to use XPCOM ref counting related macros

git-svn-id: svn://10.0.0.236/trunk@11893 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-10-05 05:11:18 +00:00
parent 1262860472
commit 7c7212336e
25 changed files with 70 additions and 74 deletions

View File

@@ -2490,7 +2490,8 @@ NS_HTML nsresult
return NS_ERROR_NULL_POINTER;
}
CSSDeclarationImpl *it = new CSSDeclarationImpl();
CSSDeclarationImpl *it;
NS_NEWXPCOM(it, CSSDeclarationImpl);
if (nsnull == it) {
return NS_ERROR_OUT_OF_MEMORY;