Closed
Bug 943373
Opened 11 years ago
Closed 11 years ago
Use MOZ_THIS_IN_INITIALIZER_LIST instead of the pragma disabling the check
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: mccr8, Assigned: mccr8)
Details
(Whiteboard: [qa-])
Attachments
(4 files)
2.79 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
6.34 KB,
patch
|
birtles
:
review+
|
Details | Diff | Splinter Review |
1.16 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
2.62 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
Ms2ger pointed that MOZ thing out. See bug 770535 comment 10 for the two places where this is currently happening, though it would be good to make sure with a Windows try push that that is all there is. Once those are converted, the pragma in xpcprivate can be removed.
Assignee | ||
Comment 1•11 years ago
|
||
Let's generalize this a little. There aren't many places that are using this.
Assignee: nobody → continuation
Component: XPConnect → General
Summary: Use MOZ_THIS_IN_INITIALIZER_LIST instead of the pragma disabling the check in XPConnect → Use MOZ_THIS_IN_INITIALIZER_LIST instead of the pragma disabling the check
Assignee | ||
Comment 2•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=8e8112629714
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8345015 -
Flags: review?(bobbyholley+bmo)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8345017 -
Flags: review?(birtles)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8345018 -
Flags: review?(bobbyholley+bmo)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8345020 -
Flags: review?(jwalden+bmo)
Assignee | ||
Comment 7•11 years ago
|
||
Green try run: https://tbpl.mozilla.org/?tree=Try&rev=8e8112629714 After these patches, the only uses left that I see talking about 4355 are in WebRTC and various imported code.
Updated•11 years ago
|
Attachment #8345015 -
Flags: review?(bobbyholley+bmo) → review+
Updated•11 years ago
|
Attachment #8345018 -
Flags: review?(bobbyholley+bmo) → review+
Comment 8•11 years ago
|
||
Have you verified that these "this" in constructors are safe? If not, we should just disable the warning globally (perhaps in the build config). If people just silence the warning, it will only uglify the source.
Comment 9•11 years ago
|
||
FYI MSVC11+ disabled this warning by default.
Updated•11 years ago
|
Attachment #8345017 -
Flags: review?(birtles) → review+
Assignee | ||
Comment 10•11 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #8) > Have you verified that these "this" in constructors are safe? If not, we > should just disable the warning globally (perhaps in the build config). If > people just silence the warning, it will only uglify the source. I did. People are just sticking raw pointers to |this| in the data structures without calling any method on them.
Assignee | ||
Comment 11•11 years ago
|
||
Landed the first three parts. remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/6f67a0fa584a remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/31def8a3dfca remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/22d0b15b74c9
Whiteboard: [leave open]
Updated•11 years ago
|
Attachment #8345020 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/74a403c9141f
Whiteboard: [leave open]
https://hg.mozilla.org/mozilla-central/rev/6f67a0fa584a https://hg.mozilla.org/mozilla-central/rev/31def8a3dfca https://hg.mozilla.org/mozilla-central/rev/22d0b15b74c9 https://hg.mozilla.org/mozilla-central/rev/74a403c9141f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•10 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•