Closed Bug 1622673 Opened 5 years ago Closed 5 years ago

nsCellMap.cpp: converting integer literal to bool, use bool literal instead

Categories

(Developer Infrastructure :: Source Code Analysis, task)

task
Not set
minor

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: Sylvestre, Assigned: raykar.ath, 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.

  while (1) {

converting integer literal to bool, use bool literal instead
should be true

https://searchfox.org/mozilla-central/source/layout/tables/nsCellMap.cpp#2469

As the change is trivial, it is just to learn how to contribute to Firefox.

http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

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

Assignee: nobody → raykar.ath
Status: NEW → ASSIGNED

Hi, new contributor here.

I have followed the procedures to the best of my understanding, and submitted a patch: https://phabricator.services.mozilla.com/D66960

I have tagged dbaron based on the commit messages in the log. I have also not tested against the try server, as I do not have level access 1 yet, and I felt this change was trivial enough that I could go without it for this patch.

I would love to know how to get another contributor to vouch for me, so I can work towards making more substantial contributions in the future.

Do inform me if I need to change anything.

Pushed by dbaron@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/68b5bfbd0a89 Converting integer literal to bool literal. r=dbaron
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: