Closed
Bug 1157664
Opened 10 years ago
Closed 10 years ago
Uninitialized member mozilla::layers::FPSCounter::mIteratorIndex in constructor
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla41
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | fixed |
People
(Reporter: nical, Assigned: mathieu.blot, Mentored)
Details
Attachments
(1 file, 1 obsolete file)
|
796 bytes,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
This is benign but adds to the coverity warning noise, so let's fix it.
| Assignee | ||
Comment 1•10 years ago
|
||
Hello, I would like to work on that bug, please.
| Reporter | ||
Updated•10 years ago
|
Assignee: nobody → mathieu.blot
| Assignee | ||
Comment 2•10 years ago
|
||
Do FPSCounter::mIteratorIndex need to be initialized to a specific value ?
Flags: needinfo?(nical.bugzilla)
| Reporter | ||
Comment 3•10 years ago
|
||
(In reply to mathieu.blot from comment #2)
> Do FPSCounter::mIteratorIndex need to be initialized to a specific value ?
-1 will do. It's an invalid value so it will trigger assertions if we ever forget to initialize mIteratorIndex when starting to iterate.
Flags: needinfo?(nical.bugzilla)
| Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8607571 -
Flags: review?(nical.bugzilla)
| Reporter | ||
Comment 5•10 years ago
|
||
Comment on attachment 8607571 [details] [diff] [review]
Build successful
Review of attachment 8607571 [details] [diff] [review]:
-----------------------------------------------------------------
Move that up one line and you'll have the r+ :)
::: gfx/layers/composite/FPSCounter.cpp
@@ +29,5 @@
>
> FPSCounter::FPSCounter(const char* aName)
> : mWriteIndex(0)
> , mFPSName(aName)
> + , mIteratorIndex(-1)
Please initialize members in the same order they are declared (mIterator comes before mFPSName).
Attachment #8607571 -
Flags: review?(nical.bugzilla) → review-
| Assignee | ||
Comment 6•10 years ago
|
||
Initializations in the same order as the definition of the members.
Attachment #8607571 -
Attachment is obsolete: true
Attachment #8607637 -
Flags: review?(nical.bugzilla)
| Reporter | ||
Updated•10 years ago
|
Attachment #8607637 -
Flags: review?(nical.bugzilla) → review+
Updated•10 years ago
|
Keywords: checkin-needed
Comment 7•10 years ago
|
||
can we get a try run for this ?
Flags: needinfo?(mathieu.blot)
Keywords: checkin-needed
Comment 8•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(mathieu.blot)
Keywords: coverity → checkin-needed
Keywords: checkin-needed
Comment 10•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•