Closed Bug 1215 Opened 26 years ago Closed 26 years ago

Fixes for *FontMetrics::GetFont

Categories

(Core Graveyard :: GFX, defect, P2)

Sun
Solaris
defect

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: tor, Assigned: michaelp)

Details

GetFont() was declared as taking a const argument, which the motif version then attempted to modify. These patches remove the "const": --- nsIFontMetrics.h-orig Fri Oct 30 15:03:18 1998 +++ nsIFontMetrics.h Fri Oct 30 15:03:34 1998 @@ -125,7 +125,7 @@ /** * Returns the font associated with these metrics */ - NS_IMETHOD GetFont(const nsFont *&aFont) = 0; + NS_IMETHOD GetFont(nsFont *&aFont) = 0; /** * Returns the font handle associated with these metrics --- motif/nsFontMetricsUnix.h-orig Fri Oct 30 15:00:46 1998 +++ motif/nsFontMetricsUnix.h Fri Oct 30 15:01:03 1998 @@ -57,7 +57,7 @@ NS_IMETHOD GetMaxDescent(nscoord &aDescent); NS_IMETHOD GetMaxAdvance(nscoord &aAdvance); - NS_IMETHOD GetFont(const nsFont*& aFont); + NS_IMETHOD GetFont(nsFont*& aFont); NS_IMETHOD GetFontHandle(nsFontHandle &aHandle); protected: --- motif/nsFontMetricsUnix.cpp-orig Fri Oct 30 15:00:37 1998 +++ motif/nsFontMetricsUnix.cpp Fri Oct 30 15:01:14 1998 @@ -334,7 +334,7 @@ return NS_OK; } -NS_IMETHODIMP nsFontMetricsUnix :: GetFont(const nsFont*& aFont) +NS_IMETHODIMP nsFontMetricsUnix :: GetFont(nsFont*& aFont) { aFont = mFont; return NS_OK;
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
this is correct as it is.
Status: RESOLVED → VERIFIED
Marking Verified.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.