Closed Bug 623132 Opened 14 years ago Closed 13 years ago

Add constructor for nsCaseInsensitiveCStringComparator (which inherits from nsCStringComparator) to placate CLang

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla5

People

(Reporter: espindola, Assigned: espindola)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
nsCaseInsensitiveCStringComparator is missing a user defined constructor,
but in mozStorageStatement.cpp a const variable of this type is defined.

This is not valid c++. For more information see "Default initialization of
const variable of a class type requires user-defined default constructor" in
http://clang.llvm.org/compatibility.html#c++
Attachment #501257 - Attachment is patch: true
Attachment #501257 - Attachment mime type: application/octet-stream → text/plain
Attachment #501257 - Flags: review?(smontagu)
The reporter's summary and initial comment were both lame. I'm merely adjusting the summary and providing a better link. I am not passing judgement on the quality of the bug report.

http://clang.llvm.org/compatibility.html#default_init_const
Summary: Missing constructor → Add constructor for nsCaseInsensitiveCStringComparator (which inherits from nsCStringComparator) to placate CLang
Comment on attachment 501257 [details] [diff] [review]
patch

I have the same question as in bug 623116 comment 3, but anyway bsmedberg should review in XPCOM.
Attachment #501257 - Flags: review?(smontagu) → review?(benjamin)
Attachment #501257 - Flags: review?(benjamin) → review+
Assignee: nobody → respindola
Depends on: post2.0
http://hg.mozilla.org/mozilla-central/rev/b26e0f9e43e8
Status: NEW → RESOLVED
Closed: 13 years ago
No longer depends on: post2.0
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: