Closed Bug 940160 Opened 12 years ago Closed 12 years ago

constify the PLDHashTableOps struct in nsTHashtable::Init

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: froydnj, Assigned: froydnj)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Because more const is a good thing.
const++ and PL_DHashTableInit already took a const ops structure.
Attachment #8334289 - Flags: review?(benjamin)
Assignee: nobody → nfroyd
Comment on attachment 8334289 [details] [diff] [review] constify the PLDHashTableOps struct in nsTHashtable::Init Kicking over to ehsan, who has a shorter review queue.
Attachment #8334289 - Flags: review?(benjamin) → review?(ehsan)
Comment on attachment 8334289 [details] [diff] [review] constify the PLDHashTableOps struct in nsTHashtable::Init Review of attachment 8334289 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/glue/nsTHashtable.h @@ +391,5 @@ > template<class EntryType> > void > nsTHashtable<EntryType>::Init(uint32_t aInitSize) > { > + static const PLDHashTableOps sOps = Nit: trailing space :P
Attachment #8334289 - Flags: review?(ehsan) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: