Closed Bug 752604 Opened 13 years ago Closed 13 years ago

Ergonomics improvements for HashTable::rekeyFront

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: terrence, Assigned: terrence)

References

Details

Attachments

(1 file)

Attached patch v0Splinter Review
This makes rekeyFront take a const ref and check for the unchanged case. This allows us to unconditionally pass a newly constructed temporary into it. This saves us a few lines and a level of indentation basically everywhere we need to use rekeyFront. Granted, this is only a handful of places, but this still seems to be the cleaner option.
Attachment #621675 - Flags: review?(luke)
Attachment #621675 - Flags: review?(luke) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: