Closed Bug 187796 Opened 23 years ago Closed 15 years ago

make unimplemented constructors in mozJSComponentLoader.h private

Categories

(Core :: XPConnect, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

Attachments

(1 file, 3 obsolete files)

bug 134728 shows that there is a non trivial constructor 88 JSCLAutoContext(); // not implemnted I think that the comment should be removed.
Attached patch remove comment (obsolete) — Splinter Review
Attachment #110709 - Flags: superreview?(brendan)
Attachment #110709 - Flags: review?(dbradley)
Trivialand! I don't see an implementation of a ctor taking no args for this class. A declaration with no body (and containing that comment - misspelled or otherwise) is my lontime pattern to indicate a class that should not be instantiated with a default (no args) ctor. It may not be the *best* pattern. But it will cause a failure to link if such a use of the class should appear. Marking invalid.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Just an FYI. 1. Ideally it should be private, then it becomes a compile time issue not a link time issue. 2. Since there is a non-trivial constructor, there's really no need to do this.
Attachment #110709 - Attachment is obsolete: true
Summary: JSCLAutoContext constructor comment is inaccurate → make unimplemented constructors in mozJSComponentLoader.h private
Marking Verified -
Status: RESOLVED → VERIFIED
reopening. I know this isn't a big issue, but it would be good to get things cleaned up, and the change is trivial. Remove the unimplemented default constructor and add a private/unimplemented copy constructor and assignment operator.
Status: VERIFIED → REOPENED
Resolution: INVALID → ---
Attachment #110948 - Flags: superreview?(scc)
Attachment #110948 - Flags: review?(dbradley)
Attachment #110709 - Flags: superreview?(brendan)
Attachment #110709 - Flags: review?(dbradley)
Attachment #110948 - Flags: superreview?(scc)
Attachment #110948 - Flags: review?(dbradley)
Attachment #110948 - Attachment is obsolete: true
Attachment #111414 - Flags: superreview?(scc)
Attachment #111414 - Flags: review?(dbradley)
Comment on attachment 111414 [details] [diff] [review] compiling version: prevent copying and assignment. r=dbradley
Attachment #111414 - Flags: review?(dbradley) → review+
QA Contact: pschwartau → xpconnect
Attachment #111414 - Flags: superreview?(scc)
Status: REOPENED → RESOLVED
Closed: 23 years ago15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: