Bug 213601: Switch some users of NS_NewAtom over to do_GetAtom. r=bzbarsky, sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@145136 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jaggernaut%netscape.com
2003-07-24 04:53:13 +00:00
parent eced45d407
commit e07c163859
27 changed files with 71 additions and 72 deletions

View File

@@ -1366,7 +1366,7 @@ nsDocShell::SetCharset(const char* aCharset)
GetDocumentCharsetInfo(getter_AddRefs(dcInfo));
if (dcInfo) {
nsCOMPtr<nsIAtom> csAtom;
csAtom = dont_AddRef(NS_NewAtom(aCharset));
csAtom = do_GetAtom(aCharset);
dcInfo->SetForcedCharset(csAtom);
}
@@ -2090,7 +2090,7 @@ nsDocShell::AddChild(nsIDocShellTreeItem * aChild)
return NS_OK;
// set the child's parentCharset
nsCOMPtr<nsIAtom> parentCSAtom(dont_AddRef(NS_NewAtom(parentCS)));
nsCOMPtr<nsIAtom> parentCSAtom(do_GetAtom(parentCS));
res = dcInfo->SetParentCharset(parentCSAtom);
if (NS_FAILED(res))
return NS_OK;