Closed
Bug 1741451
Opened 3 years ago
Closed 2 years ago
SanitizeRenderer.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
(firefox96 fixed)
RESOLVED
FIXED
96 Branch
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: dmeehan, 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.
inBytes.size() == 0
should use .empty() instead
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
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Attachment #9251903 -
Attachment description: Bug 1741451 - Replace inBytes.size == 0 with inBytes.empty(). r=sylvestre → Bug 1741451 - Replace inBytes.size == 0 with inBytes.empty(). r?keeler
Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0f82118c1e29 Replace inBytes.size == 0 with inBytes.empty(). r=keeler
Comment 3•2 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox96:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
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
•