Bug 859817 - Make NS_NewAtom return already_AddRefed; r=bz
This commit is contained in:
@@ -14,7 +14,7 @@ nsAtomService::nsAtomService()
|
||||
nsresult
|
||||
nsAtomService::GetAtom(const nsAString& aString, nsIAtom ** aResult)
|
||||
{
|
||||
*aResult = NS_NewAtom(aString);
|
||||
*aResult = NS_NewAtom(aString).get();
|
||||
|
||||
if (!*aResult)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
@@ -36,7 +36,7 @@ nsAtomService::GetPermanentAtom(const nsAString& aString, nsIAtom ** aResult)
|
||||
NS_IMETHODIMP
|
||||
nsAtomService::GetAtomUTF8(const char *aValue, nsIAtom* *aResult)
|
||||
{
|
||||
*aResult = NS_NewAtom(aValue);
|
||||
*aResult = NS_NewAtom(aValue).get();
|
||||
|
||||
if (!*aResult)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
Reference in New Issue
Block a user