Closed
Bug 1447914
Opened 6 years ago
Closed 6 years ago
Change FunctionCall::getAtomName() to appendName()
Categories
(Core :: XSLT, enhancement, P2)
Core
XSLT
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(1 file)
10.23 KB,
patch
|
erahm
:
review+
|
Details | Diff | Splinter Review |
getAtomName() is only used in one place -- FunctionCall::toString() -- where the returned atom is appended to a string. This patch changes it to appendName(), which does the appending itself. This avoids a bunch of manual atom refcounting and the possibility of failure. MozReview-Commit-ID: I75rO1Bv6Y8
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #8961297 -
Flags: review?(erahm)
Updated•6 years ago
|
Priority: -- → P2
Comment 2•6 years ago
|
||
Comment on attachment 8961297 [details] [diff] [review] Change FunctionCall::getAtomName() to appendName() Review of attachment 8961297 [details] [diff] [review]: ----------------------------------------------------------------- Nice cleanup, just a minor nit. ::: dom/xslt/xpath/txExpr.h @@ +139,5 @@ > > #ifdef TX_TO_STRING > #define TX_DECL_TOSTRING \ > void toString(nsAString& aDest) override; > #define TX_DECL_GETNAMEATOM \ nit: Can you update the macro name? @@ +140,5 @@ > #ifdef TX_TO_STRING > #define TX_DECL_TOSTRING \ > void toString(nsAString& aDest) override; > #define TX_DECL_GETNAMEATOM \ > + void appendName(nsAString& aStr) override; nit: Maybe name the param `aDest` to match `toString`.
Attachment #8961297 -
Flags: review?(erahm) → review+
Assignee | ||
Comment 3•6 years ago
|
||
> > #define TX_DECL_GETNAMEATOM \ > > nit: Can you update the macro name? Good catch. > > + void appendName(nsAString& aStr) override; > > nit: Maybe name the param `aDest` to match `toString`. Sure.
Assignee | ||
Comment 4•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3145ee5bb85c8cf09b65d88e86e8aba2949efac4 Bug 1447914 - Change FunctionCall::getAtomName() to appendName(). r=froydnj
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3145ee5bb85c
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•