mlk fix. r=tao

git-svn-id: svn://10.0.0.236/trunk@75362 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
valeski%netscape.com
2000-08-02 00:09:22 +00:00
parent 283dbf916a
commit fd89dc645d

View File

@@ -27,6 +27,7 @@
#include "nsNetUtil.h"
#include "nsICharsetConverterManager.h"
#include "nsILocaleService.h"
#include "nsXPIDLString.h"
class nsLanguageAtom : public nsILanguageAtom
{
@@ -277,8 +278,8 @@ nsLanguageAtomService::GetLocaleLanguageGroup(nsIAtom** aResult)
NS_ENSURE_SUCCESS(res, res);
nsAutoString category;
category.AssignWithConversion(NSILOCALE_MESSAGE);
PRUnichar* loc = nsnull;
res = locale->GetCategory(category.GetUnicode(), &loc);
nsXPIDLString loc;
res = locale->GetCategory(category.GetUnicode(), getter_Copies(loc));
NS_ENSURE_SUCCESS(res, res);
nsCOMPtr<nsILanguageAtom> langAtom;
res = LookupLanguage(loc, getter_AddRefs(langAtom));