Closed
Bug 1268754
Opened 8 years ago
Closed 8 years ago
Tweak some MFBT return values
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
6.58 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
I looked through mfbt/ for places to add MOZ_MUST_USE. I didn't find much, but what I did find I've included here.
Assignee | ||
Comment 1•8 years ago
|
||
This patch: - Adds MOZ_MUST_USE to AllocPolicy::checkSimulatedOOM(). - Adds MOZ_MUST_USE to LZ4::decompress() (both variants) and fixes their comments. - Changes the return type of SplayTree::insert() from bool to void, because it always returns true and its callers don't check the return value. - Changes the return type of SplayTree::finishInsertion() from T* to void, because it makes things clearer -- it was just returning the aNew argument. - Adds MOZ_MUST_USE to a Vector::growTo() (both variants).
Attachment #8746908 -
Flags: review?(Ms2ger)
Assignee | ||
Updated•8 years ago
|
Blocks: use-nodiscard
Comment 2•8 years ago
|
||
Comment on attachment 8746908 [details] [diff] [review] Tweak some MFBT return values Review of attachment 8746908 [details] [diff] [review]: ----------------------------------------------------------------- lgtm
Attachment #8746908 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 3•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d32e2e6900731d22163bcd2370ea8f75b634eb54 Bug 1268754 - Tweak some MFBT return values. r=Ms2ger.
Comment 4•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d32e2e690073
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•