Closed
Bug 187796
Opened 22 years ago
Closed 14 years ago
make unimplemented constructors in mozJSComponentLoader.h private
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
References
()
Details
Attachments
(1 file, 3 obsolete files)
1.67 KB,
patch
|
dbradley
:
review+
|
Details | Diff | Splinter Review |
bug 134728 shows that there is a non trivial constructor 88 JSCLAutoContext(); // not implemnted I think that the comment should be removed.
Attachment #110709 -
Flags: superreview?(brendan)
Attachment #110709 -
Flags: review?(dbradley)
Comment 2•22 years ago
|
||
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: 22 years ago
Resolution: --- → INVALID
Comment 3•22 years ago
|
||
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
Comment 6•22 years ago
|
||
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 #110771 -
Attachment is obsolete: true
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 9•22 years ago
|
||
Comment on attachment 111414 [details] [diff] [review] compiling version: prevent copying and assignment. r=dbradley
Attachment #111414 -
Flags: review?(dbradley) → review+
Updated•18 years ago
|
QA Contact: pschwartau → xpconnect
Attachment #111414 -
Flags: superreview?(scc)
Assignee | ||
Comment 10•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f0ad730b1951
Status: REOPENED → RESOLVED
Closed: 22 years ago → 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•