Closed
Bug 2843
Opened 26 years ago
Closed 26 years ago
Interfaces passed as in parameters in .idl files are generated as const
Categories
(Core :: XPCOM, defect, P2)
Tracking
()
VERIFIED
FIXED
M4
People
(Reporter: scottputterman, Assigned: shaver)
Details
If you write the following in an .idl file
void A(in nsIInterface interface)
you get the following generated code:
NS_IMETHOD A(const nsIInterface *interface)
There's nothing wrong with this, but it does mean that you can only call const
methods on "interface". If you do something like "interface->QueryInterface" on
Visual C++ 6.0 on Windows, you'll get a compiler error since "QueryInterface"
isn't a const function. Right now you can get around it by casting "interface"
to a "nsIInterface *" before using it, but it seems like it would make it easier
for the interface to not be const.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 2•26 years ago
|
||
Fixed!
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 4•26 years ago
|
||
didn't hear any complaining so marking verified
Comment 5•26 years ago
|
||
bulk reassigning all bugs from shaver's @netscape account to his @mozill acount
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•