Closed Bug 3378 Opened 26 years ago Closed 26 years ago

inherited virtual function is hidden

Categories

(Core :: XPCOM, defect, P2)

PowerPC
Mac System 8.5
defect

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 };
Component: XP-COM → XPCOM
Product: Mozilla → NGLayout
Moving bug fomr XP-COM to XPCOM. Cleaning up Bugzilla. XP-COM will be removed.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
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.
Status: RESOLVED → VERIFIED
Marking Verified/Won't Fix.
You need to log in before you can comment on or make changes to this bug.