Closed
Bug 3378
Opened 26 years ago
Closed 26 years ago
inherited virtual function is hidden
Categories
(Core :: XPCOM, defect, P2)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: Brade, Assigned: scc-obsolete)
Details
[Please reassign or change component as appropriate] From Macintosh compiler (nsRangeList.cpp in layout.mcp): Warning : 'nsDerivedSafe<nsISupportsArray>::operator=(const nsDerivedSafe< nsISupportsArray> &)' hides inherited virtual function 'nsISupportsArray::operator=(const nsISupportsArray &)' (instantiating: 'nsDerivedSafe<nsISupportsArray>') nsCOMPtr.h line 367 };
Moving bug fomr XP-COM to XPCOM. Cleaning up Bugzilla. XP-COM will be removed.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 2•26 years ago
|
||
Right. I know this sounds strange, but this is what I intended to happen. | nsDerivedSafe| hides inherited |operator=| because you couldn't possibly get the right one. |nsDerivedSafe| makes |operator=| private so you can't call it and accidentally slice in the following circumstance *myCOMPtr = *someOtherPointer; I wish I could supress the warning, but I can't. Sorry.
You need to log in
before you can comment on or make changes to this bug.
Description
•