Closed Bug 783206 Opened 13 years ago Closed 13 years ago

replace NULL with nullptr in intl except to OS API usages

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(1 file)

No description provided.
Attached patch fixSplinter Review
Attachment #652376 - Flags: review?(smontagu)
Summary: replace NULL with nullptr in intl except to API usages → replace NULL with nullptr in intl except to OS API usages
Comment on attachment 652376 [details] [diff] [review] fix Review of attachment 652376 [details] [diff] [review]: ----------------------------------------------------------------- ::: intl/locale/src/mac/nsCollationMacUC.cpp @@ +12,5 @@ > > nsCollationMacUC::nsCollationMacUC() > : mInit(false) > , mHasCollator(false) > , mLocale(NULL) why do this and mCollator(NULL) below not get changed? ::: intl/locale/src/nsLocaleService.cpp @@ +314,5 @@ > int countLang = 0; > char acceptLanguageList[NSILOCALE_MAX_ACCEPT_LANGUAGE][NSILOCALE_MAX_ACCEPT_LENGTH]; > nsresult result; > > + nsAutoArrayPtr<char> input(new char[strlen(acceptLanguage)+1]); This change and the similar one in nsUnicodeDecodeHelper::CreateFastTable below don't really belong in this patch, but they're small enough that I don't think it matters.
Attachment #652376 - Flags: review?(smontagu) → review+
Can we land this before somebody works on bug 784739?
Blocks: 784739
(In reply to Simon Montagu from comment #2) > Comment on attachment 652376 [details] [diff] [review] > fix > > Review of attachment 652376 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: intl/locale/src/mac/nsCollationMacUC.cpp > @@ +12,5 @@ > > > > nsCollationMacUC::nsCollationMacUC() > > : mInit(false) > > , mHasCollator(false) > > , mLocale(NULL) > > why do this and mCollator(NULL) below not get changed? This uses OS API handle (LocaleRef and CollatorRef).
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: