Closed Bug 1713521 Opened 5 years ago Closed 5 years ago

layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break'

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: Sylvestre, Assigned: jaygala260)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++])

Attachments

(1 file, 4 external files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1713520 +++

Filling as a good first bug to learn workflows.

do not use 'else' after 'break':
https://searchfox.org/mozilla-central/source/layout/base/nsFrameTraversal.cpp#257-261

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-else-after-return.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Summary: layout/base/nsFrameTraversal.cpp: do not use 'else' after 'return' → layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break'

Working on this

Assignee: nobody → jaygala260
Status: NEW → ASSIGNED
Attachment #9225475 - Attachment description: Bug 1713521 - layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break' → Bug 1713521 - layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break' r=Sylvestre
Attachment #9225475 - Attachment description: Bug 1713521 - layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break' r=Sylvestre → Bug 1713521 - layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break'

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jaygala260, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(jaygala260)
Flags: needinfo?(emilio)
Attachment #9225475 - Attachment description: Bug 1713521 - layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break' → Bug 1713521 - layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break'. r=emilio

Updated author information with bugzilla nick and email. Hit bug 1718540 in the process.

Flags: needinfo?(jaygala260)
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3cb9a3daa264 layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break'. r=emilio

Comment on attachment 9229194 [details]
Bug 1713521 - Deal with empty diff_commits in submit. r=zeid,glob

Revision D118922 was moved to bug 1718540. Setting attachment 9229194 [details] to obsolete.

Attachment #9229194 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

Bug 1713521: Removed 'else' after 'break' from lines 257-261

jaygala260 : this bug was fixed two months ;)

Comment on attachment 9237902 [details]
Bug 1713521 - removed 'else' after 'break' at lines 257-261. r?emilio

Revision D123590 was moved to bug 1727562. Setting attachment 9237902 [details] to obsolete.

Attachment #9237902 - Attachment is obsolete: true
Attachment #9237902 - Attachment is obsolete: false

ran mach clang-format -p layout/base/nsFrameTraversal.cpp and ./mach lint --warnings --outgoing, 0 errors were found

Depends on D123648

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: