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)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: m_kato, Assigned: m_kato)
References
Details
Attachments
(1 file)
99.61 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #652376 -
Flags: review?(smontagu)
Assignee | ||
Updated•13 years ago
|
Summary: replace NULL with nullptr in intl except to API usages → replace NULL with nullptr in intl except to OS API usages
Comment 2•13 years ago
|
||
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+
Assignee | ||
Comment 4•13 years ago
|
||
(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).
Assignee | ||
Comment 5•13 years ago
|
||
Target Milestone: --- → mozilla17
Comment 6•13 years ago
|
||
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.
Description
•