Closed Bug 1629420 Opened 5 years ago Closed 4 years ago

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)

RESOLVED FIXED
89 Branch
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.

Assignee: nobody → jwalker

This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: jwalker → nobody
Priority: -- → P5

Depends on D105867

Assignee: nobody → snehasai01
Status: NEW → ASSIGNED
Attachment #9204422 - Attachment is obsolete: true

Is this bug still Open? if It is, I love to start with this.

Flags: needinfo?(sledru)

(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?

Flags: needinfo?(sledru) → needinfo?(snehasai01)

(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.

Flags: needinfo?(snehasai01)
Pushed by bpostelnicu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f509d5be8b07 ClientWebGLContext.cpp: the 'empty' method should be used to check for emptiness instead of 'size'. r=andi
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
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: