Remove a nested redundant #if
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: dawiha79, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(1 file, 1 obsolete file)
Filling as a good first bug to learn workflows.
MOZ_WIDGET_GTK is checked twice and we are in the same block
https://searchfox.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp#2702
As the change is trivial, it is just to learn how to contribute to Firefox.
Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-preprocessor.html
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html
Comment 1•3 years ago
|
||
Hi, I would like to assign to this bug.
Reporter | ||
Comment 2•3 years ago
|
||
Please submit a patch, i will assign once you have done it
This is a patch for https://searchfox.org/mozilla-central/source/toolkit/xre/nsAppRunner.cpp .
The check for "if defined(MOZ_WIDGET_GTK)" at line 3744 is redundant because that is checked at line 3729 also which is the parent "if".
Differences:
(Old) Line 3744: # if defined(MOZ_WIDGET_GTK) && defined(MOZ_X11)
(New) Line 3744: # if defined(MOZ_X11)
Reporter | ||
Comment 4•3 years ago
|
||
man.god96, please follow the documentation mentioned in comment #0
We don't use bugzilla for development
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by nfroyd@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39b62e08daa0 Removed nested redundant #if r=froydnj
Comment 7•3 years ago
|
||
bugherder |
Updated•7 months ago
|
Description
•