Closed Bug 779287 Opened 12 years ago Closed 12 years ago

widget/android: replace NULL with nullptr

Categories

(Firefox for Android Graveyard :: General, defect, P4)

ARM
Android
defect

Tracking

(firefox17 affected)

RESOLVED WONTFIX
Firefox 17
Tracking Status
firefox17 --- affected

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(1 file)

Now that bug 626472 (Switch from nsnull to nullptr) has landed, Gecko code is migrating to C++11's magic `nullptr` constant (or an equivalent `nullptr` macro for pre-C++11 compilers).

In new Android code, we ought to use nullptr in place of NULL, nsnull, or the 0 pointer. nullptr does not give us much benefit with Android's gcc 4.4, but NDK r8b's gcc 4.6 will give us better nullptr warnings.
Attachment #647660 - Flags: review?(mark.finkle)
Summary: Replace NULL with nullptr → widget/android: replace NULL with nullptr
Comment on attachment 647660 [details] [diff] [review]
replace-NULL-with-nullptr.patch

You should probably send to Try just to make sure the build system on tinderbox is OK to handle these changes. I assume it will be fine, but you know how it goes.
Attachment #647660 - Flags: review?(mark.finkle) → review+
(In reply to Mark Finkle (:mfinkle) from comment #1)
> You should probably send to Try just to make sure the build system on
> tinderbox is OK to handle these changes. I assume it will be fine, but you
> know how it goes.

Will do.
Android tests were green (save for a few XUL tests):
https://tbpl.mozilla.org/?tree=Try&rev=3a3b42304b8d

And other platform builds were green:
https://tbpl.mozilla.org/?tree=Try&rev=98bfe405937c
backed out:
https://hg.mozilla.org/integration/mozilla-inbound/rev/412282a35c2d

Ms2ger says: "Doing it for the whole code base is fine; it means you can do s/nsnull/nullptr/ on your patch queue *once*; if you do it module by module, you have to fix up *parts* of your patch queue a couple dozen times."
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Priority: P3 → P4
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: