Closed
Bug 1626784
Opened 4 years ago
Closed 4 years ago
FPSCounter.cpp: the 'empty' method should be used to check for emptiness instead of 'size'
Categories
(Developer Infrastructure :: Source Code Analysis, task)
Developer Infrastructure
Source Code Analysis
Tracking
(firefox77 fixed)
RESOLVED
FIXED
mozilla77
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: daltonsam437, 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.
aHistogram.size() == 0
should use .empty() instead
https://searchfox.org/mozilla-central/source/gfx/layers/composite/FPSCounter.cpp#279
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-container-size-empty.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 | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → daltonsam437
Status: NEW → ASSIGNED
Comment 2•4 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:daltonsam437, could you have a look please?
For more information, please visit auto_nag documentation.
Flags: needinfo?(daltonsam437)
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ed0826f47244 Changed FPSCounter.cpp to check for emptiness with .empty() instead of .size() r=jrmuizel
Reporter | ||
Updated•4 years ago
|
Flags: needinfo?(daltonsam437)
Comment 4•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox77:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•