nsDocumentViewer.cpp: Remove a nested redundant #if
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Tracking
(firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: sanchit.arora.2002, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(1 file)
Filling as a good first bug to learn workflows.
NS_PRINTING is checked twice and we are in the same block
https://searchfox.org/mozilla-central/source/layout/base/nsDocumentViewer.cpp#3710
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
Assignee | ||
Comment 1•5 years ago
|
||
Hello, I'm starting to contribute to Mozilla. I want to work on this bug so can I please become the assignee?
Comment 2•5 years ago
|
||
I suppose in this block there are some more duplication as a part of compound conditions.
For example here
https://searchfox.org/mozilla-central/source/layout/base/nsDocumentViewer.cpp#3723
Am I right?
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to sanchit.arora.2002 from comment #1)
Hello, I'm starting to contribute to Mozilla. I want to work on this bug so can I please become the assignee?
Reporter | ||
Comment 4•5 years ago
|
||
Yeah, the block begins here it seems:
https://searchfox.org/mozilla-central/source/layout/base/nsDocumentViewer.cpp#3416
I will assign it to the first person who proposes a patch
Comment 5•5 years ago
|
||
sanchit.arora.2000, I don't want to steal your opportunity, I will proposes a patch in two days if you don't do it before.
Is it fair enough?
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Aleksei Kharinskiy from comment #5)
sanchit.arora.2000, I don't want to steal your opportunity, I will proposes a patch in two days if you don't do it before.
Is it fair enough?
Thanks a lot for letting me take this opportunity.
Reporter | ||
Comment 7•5 years ago
|
||
I have plenty of bugs like this.
Feel free to send me an email to request for me
Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Sylvestre Ledru [:Sylvestre] from comment #7)
I have plenty of bugs like this.
Feel free to send me an email to request for me
I submitted the patch for this bug, could you please let me know the next step?
Assignee | ||
Comment 9•5 years ago
|
||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•