Convert some code in editor/ to C++11

RESOLVED FIXED in Firefox 53

Status

defect
RESOLVED FIXED
3 years ago
2 years ago

People

(Reporter: andi, Assigned: andi)

Tracking

Trunk
mozilla53
Dependency tree / graph

Firefox Tracking Flags

(firefox53 fixed)

Details

Attachments

(2 attachments)

Using the checkers provided by clang-tidy we can refresh the code to make it use the features of C++11 like:

- auto variables declarations
- default CTORS and DTORS
- using new range loop operators
Attachment #8813158 - Flags: review?(masayuki)
Attachment #8813159 - Flags: review?(masayuki)
In the second patch we added override even if in the definition of NS_IMETHOD we have virtual, but i think it's more visible to have it declared as override.
Comment on attachment 8813158 [details]
Bug 1319401 - Replace default bodies of special member functions with = default; in editor/.

https://reviewboard.mozilla.org/r/94680/#review95148

Thanks!
Attachment #8813158 - Flags: review?(masayuki) → review+
Comment on attachment 8813159 [details]
Bug 1319401 - Use C++11's override and remove virtual where applicable in editor/.

https://reviewboard.mozilla.org/r/94682/#review95150
Attachment #8813159 - Flags: review?(masayuki) → review+
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8c616addd454
Replace default bodies of special member functions with = default; in editor/. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/7e495dade309
Use C++11's override and remove virtual where applicable in editor/. r=masayuki
https://hg.mozilla.org/mozilla-central/rev/8c616addd454
https://hg.mozilla.org/mozilla-central/rev/7e495dade309
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.