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