ClientWebGLContext.cpp: the 'empty' method should be used to check for emptiness instead of 'size'
Categories
(Developer Infrastructure :: Source Code Analysis, task, P5)
Tracking
(firefox89 fixed)
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: snehasai01, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(1 file, 1 obsolete file)
Filling as a good first bug to learn workflows.
if (prog.mActiveTfos.size()) {
should use .empty() instead
https://searchfox.org/mozilla-central/source/dom/canvas/ClientWebGLContext.cpp#4692
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.
Also, please only work on two max of such bugs.
Reporter | ||
Updated•5 years ago
|
Comment 1•4 years ago
|
||
This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Is this bug still Open? if It is, I love to start with this.
Comment 4•4 years ago
|
||
(In reply to rai.ankur0007 from comment #3)
Is this bug still Open? if It is, I love to start with this.
Let’s see if the original author is still interested in this, if not you can take it.
@snehasai01 are you still interested in this?
Reporter | ||
Comment 5•4 years ago
|
||
Yeah, the code move to:
https://searchfox.org/mozilla-central/source/dom/canvas/ClientWebGLContext.cpp#5338
(In reply to Andi-Bogdan Postelnicu [:andi] from comment #4)
(In reply to rai.ankur0007 from comment #3)
Is this bug still Open? if It is, I love to start with this.
Let’s see if the original author is still interested in this, if not you can take it.
@snehasai01 are you still interested in this?
Yes, I have submitted a new patch, kindly review.
Comment 9•4 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•