Closed
Bug 1137155
Opened 10 years ago
Closed 10 years ago
static assertion failed: Reference-counted class Icc should not have a public destructor
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox39 fixed)
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: gerard-majax, Assigned: tzimmermann)
References
Details
Attachments
(1 file, 1 obsolete file)
816 bytes,
patch
|
tzimmermann
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1136729 +++
2:31.29 In file included from /home/alex/codaz/Mozilla/b2g/gecko/obj-libril-mulet/dom/icc/Unified_cpp_dom_icc0.cpp:11:0:
2:31.29 /home/alex/codaz/Mozilla/b2g/gecko/dom/icc/Icc.cpp: In member function ‘virtual MozExternalRefCountType mozilla::dom::Icc::AddRef()’:
2:31.29 /home/alex/codaz/Mozilla/b2g/gecko/dom/icc/Icc.cpp:50:45: error: static assertion failed: Reference-counted class Icc should not have a public destructor. Try to make this class's destructor non-public. If that is really not possible, you can whitelist this class by providing a HasDangerousPublicDestructor specialization for it.
2:31.29 NS_IMPL_ADDREF_INHERITED(Icc, DOMEventTargetHelper)
Flags: needinfo?(htsai)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(htsai)
Assignee | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Comment on attachment 8570455 [details] [diff] [review]
[01] Bug 1137155: Marked destructor of |ICC| as protected
Review of attachment 8570455 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the patch, Thomas. r=me with comment addressed.
::: dom/icc/Icc.h
@@ +109,5 @@
> IMPL_EVENT_HANDLER(cardstatechange)
> IMPL_EVENT_HANDLER(stkcommand)
> IMPL_EVENT_HANDLER(stksessionend)
>
> +protected:
Since Icc is defined as MOZ_FINAL, it doesn’t make much sense to have "protected" destructor here. Let's use private instead.
Attachment #8570455 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Changes since v1:
- marked destructor as private
Attachment #8570455 -
Attachment is obsolete: true
Attachment #8571878 -
Flags: review+
Assignee | ||
Comment 4•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•