The GetFont method of nsIFontMetrics takes a const pointer reference

as argument, so we must pass a const pointer reference to it.


git-svn-id: svn://10.0.0.236/trunk@15681 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%netscape.com 1998-12-03 06:29:56 +00:00
parent f8d265ea3f
commit 2c8f8fff45

View File

@ -903,7 +903,7 @@ nsRenderingContextGTK::DrawString(const char *aString, PRUint32 aLength,
if (mFontMetrics)
{
nsFont *font;
const nsFont *font;
mFontMetrics->GetFont(font);
PRUint8 deco = font->decorations;