Closed Bug 1727562 Opened 3 years ago Closed 2 years ago

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

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: jaygala260, Assigned: dholbert, Mentored)

Details

Attachments

(1 file, 3 obsolete files)

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

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

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

Flags: needinfo?(sledru)
Flags: needinfo?(emilio)
Flags: needinfo?(dholbert)

Why the needinfo?

Flags: needinfo?(sledru)
Flags: needinfo?(emilio)
Flags: needinfo?(dholbert)
Assignee: nobody → jaygala260

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

Revision D123590 was moved to bug 1713521. Setting attachment 9237977 [details] to obsolete.

Attachment #9237977 - Attachment is obsolete: true

Depends on D123590

Depends on D123647

Attachment #9237986 - Attachment description: Bug 1727562 - Removed 'else' after 'break', improved indentation → WIP: Bug 1727562 - Removed 'else' after 'break', improved indentation

Comment on attachment 9237987 [details]
Bug 1727562 - Removed 'else' after 'break', improved indentation. r?emilio

Revision D123648 was moved to bug 1713521. Setting attachment 9237987 [details] to obsolete.

Attachment #9237987 - Attachment is obsolete: true
Mentor: emilio, sledru

The bug assignee didn't login in Bugzilla in the last 7 months.
:dholbert, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: jaygala260 → nobody
Flags: needinfo?(dholbert)

Looks like the patch had a bunch of unrelated whitespace fixes, which is why it never landed.

The issue still remains (we still have else-after-break in the referenced code), so the bug is still valid.

Flags: needinfo?(dholbert)

This patch doesn't change behavior; it just makes this code more consistent
with our coding style.

Assignee: nobody → dholbert
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

It's a trivial change, so let's just fix it rather than leaving this open indefinitely.

Attachment #9237986 - Attachment is obsolete: true
Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fdc054e07f02 Avoid else-after-break in nsFrameTraversal.cpp, and add braces to one-liner if-statements. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: