nsTSubstring::Split should be a const method

RESOLVED FIXED in Firefox 55

Status

()

RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: jfkthame, Assigned: jfkthame)

Tracking

unspecified
mozilla55
Points:
---

Firefox Tracking Flags

(firefox55 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
As nsTSubstring::Split doesn't actually modify the target string -- it just identifies ranges within it -- we can declare it as a const method.

(This is wanted for methods in bug 1337694, where we'd like to be able to apply Split to strings passed in const& parameters.)
(Assignee)

Comment 1

2 years ago
Created attachment 8843707 [details] [diff] [review]
Make nsTSubstring::Split a const method
Attachment #8843707 - Flags: review?(gpascutto)
(Assignee)

Updated

2 years ago
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #8843707 - Flags: review?(gpascutto) → review+

Comment 3

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/528fdb775b63
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
status-firefox55: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.