From fd89dc645d61a1fc688ed613efb698462aeb246b Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Wed, 2 Aug 2000 00:09:22 +0000 Subject: [PATCH] mlk fix. r=tao git-svn-id: svn://10.0.0.236/trunk@75362 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/intl/locale/src/nsLanguageAtomService.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/intl/locale/src/nsLanguageAtomService.cpp b/mozilla/intl/locale/src/nsLanguageAtomService.cpp index 501e8f8a86c..12dcdb4afd2 100644 --- a/mozilla/intl/locale/src/nsLanguageAtomService.cpp +++ b/mozilla/intl/locale/src/nsLanguageAtomService.cpp @@ -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 langAtom; res = LookupLanguage(loc, getter_AddRefs(langAtom));