Closed
Bug 983989
Opened 10 years ago
Closed 10 years ago
Cleanup XPCConvert::NativeData2JS
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: Ms2ger, Assigned: Ms2ger)
Details
Attachments
(3 files)
13.91 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
9.50 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
8.16 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
The structure of XPCConvert::NativeData2JS is basically switch (type.TagPart()) { // some cases default: { switch (type.TagPart()) { // some more cases } } } This is kinda silly.
Assignee | ||
Comment 1•10 years ago
|
||
This makes the indentation of cases consistent, and reindents the nested switch to make the next patch easier to review.
Attachment #8391702 -
Flags: review?(bobbyholley)
Assignee | ||
Comment 2•10 years ago
|
||
This drops the nested switch and makes sure we return from all cases, rather than breaking to the "return true;" at the end of the function.
Attachment #8391703 -
Flags: review?(bobbyholley)
Assignee | ||
Comment 3•10 years ago
|
||
Removed the C-style casts that were silently casting away constness too, and moved some assignments out of if conditions.
Attachment #8391704 -
Flags: review?(bobbyholley)
Comment 4•10 years ago
|
||
Comment on attachment 8391702 [details] [diff] [review] Part a: Reindent Review of attachment 8391702 [details] [diff] [review]: ----------------------------------------------------------------- rs=bholley assuming that this is only whitespace change.
Attachment #8391702 -
Flags: review?(bobbyholley) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8391703 [details] [diff] [review] Part b: Simplify code flow Review of attachment 8391703 [details] [diff] [review]: ----------------------------------------------------------------- <3,r=bholley ::: js/xpconnect/src/XPCConvert.cpp @@ +340,5 @@ > > + return XPCVariant::VariantDataToJS(variant, > + pErr, d); > + } > + // else... I think this comment can go. @@ +355,1 @@ > #endif I have no idea what this DEBUG block is trying to check. Can you remove it while you're there?
Attachment #8391703 -
Flags: review?(bobbyholley) → review+
Comment 6•10 years ago
|
||
Comment on attachment 8391704 [details] [diff] [review] Part c: Cleanup Review of attachment 8391704 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/xpconnect/src/XPCConvert.cpp @@ +341,5 @@ > > return XPCVariant::VariantDataToJS(variant, > pErr, d); > } > + Ah ok, you removed this here.
Attachment #8391704 -
Flags: review?(bobbyholley) → review+
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/592e6de7211b https://hg.mozilla.org/integration/mozilla-inbound/rev/91885eced736 https://hg.mozilla.org/integration/mozilla-inbound/rev/14ab9b8d15be
Flags: in-testsuite-
Comment 8•10 years ago
|
||
Push(es) backed out for something therein causing failures of form: https://tbpl.mozilla.org/php/getParsedLog.php?id=37568923&tree=Mozilla-Inbound https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?changeset=7db109e3a02b
Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0a84cc0abfc5 https://hg.mozilla.org/integration/mozilla-inbound/rev/3453b35da7f5 https://hg.mozilla.org/integration/mozilla-inbound/rev/e163d84250f0
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0a84cc0abfc5 https://hg.mozilla.org/mozilla-central/rev/3453b35da7f5 https://hg.mozilla.org/mozilla-central/rev/e163d84250f0
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•