SanitizeRenderer.cpp: the 'empty' method should be used to check for emptiness instead of 'size'
Categories
(Developer Infrastructure :: Source Code Analysis, task)
Tracking
(firefox96 fixed)
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: tawahpeggy98, 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.
if (archLetter.size()) {
should use .empty() instead
https://searchfox.org/mozilla-central/source/dom/canvas/SanitizeRenderer.cpp#119
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.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
SanitizeRenderer.cpp: The empty method should be used to check for emptiness instead of the size method.
Depends on D130540
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Hello Sylvestre.
please help me review this change and let me know if there are any issues.
Reporter | ||
Comment 3•3 years ago
|
||
As andi said, please rebase your patch: it doesn't apply :)
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html
Reporter | ||
Comment 4•3 years ago
|
||
actually, it was the other patch in your stack. :)
you can ignore my message
Updated•3 years ago
|
Comment 6•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•