Closed Bug 3138 Opened 26 years ago Closed 26 years ago

Some code is using static_cast

Categories

(Core :: DOM: HTML Parser, defect, P2)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: slogan, Assigned: scc-obsolete)

Details

./gfx/src/mac/nsRenderingContextMac.cpp: DrawingSurface* surface = static_cast<DrawingSurface*>(aSurface); ./gfx/src/mac/nsRenderingContextMac.cpp: DrawingSurface* surface = static_cast<DrawingSurface*>(aSurface); ./gfx/src/mac/nsRenderingContextMac.cpp: mPort = static_cast<GrafPtr>(aWindow->GetNativeData(NS_NATIVE_DISPLAY)); ./gfx/src/mac/nsRenderingContextMac.cpp: DrawingSurface* surface = static_cast<DrawingSurface*>(aSurface); ./gfx/src/mac/nsRenderingContextMac.cpp: DrawingSurface* surface = static_cast<DrawingSurface*>(aSurface); ./gfx/src/mac/nsRenderingContextMac.cpp: DrawingSurface* srcSurface = static_cast<DrawingSurface*>(aSrcSurf); ./gfx/src/mac/nsRenderingContextMac.cpp: DrawingSurface* surface = static_cast<DrawingSurface*>(aSurface); ./widget/src/gtk/nsWidget.cpp: aStatus = mMenuListener->MenuSelected(static_cast<nsMenuEvent&>(*event)); ./widget/src/mac/nsMacEventHandler.cpp: ::SetPort(static_cast<GrafPort*>(mTopLevelWidget->GetNativeData(NS_NATIVE_DISPLAY)));
Assignee: sdagley → scc
OS: AIX → Mac System 8.5
Hardware: All → Macintosh
Reassigning to the C++ guru (and making it a Mac bug so it shows up on my default bug query)
Note, it isn't strictly a Mac problem, but most of the ones grep found were in Mac code.
Component: Platform: MacOS/PPC → Parser
Product: Mozilla → NGLayout
Version: 1998-03-31 → other
QA Contact: 3828
rickg, what component would this be?
Status: NEW → ASSIGNED
Scott, why do you have this bug? Nearly all of the problems are in GFX, right? Can't the Gecko Mac folks handle this?
Yes. I have no idea why this bug is assigned to me. I also have no idea why using |static_cast| in platform specific code is wrong. We know these aren't problems because we compile on all platforms, ergo, this code is not building on non-compliant platforms. A strong hint to say the least. When I get around to it, I'll do a search and re-assign the bug accordingly. ... Unless we decide to 86 it entirely.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
resolving as invalid. Please reopen if necessary, but include a description of what the problem is, and assign it to someone who is responsible for GFX
Status: RESOLVED → VERIFIED
marking verified per last comments
You need to log in before you can comment on or make changes to this bug.