From 2fb9d4371ed3ca79636ba0c779c570956d9e83f5 Mon Sep 17 00:00:00 2001 From: Rich Walsh Date: Sat, 7 Aug 2010 17:35:33 +0200 Subject: [PATCH] Bug 580142 - [OS/2] Build break in gfxOS2Fonts r=mozilla@Weilbacher.org a=NPOTB --- gfx/thebes/gfxOS2Fonts.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/thebes/gfxOS2Fonts.cpp b/gfx/thebes/gfxOS2Fonts.cpp index 237d80185fd..3a25503344e 100644 --- a/gfx/thebes/gfxOS2Fonts.cpp +++ b/gfx/thebes/gfxOS2Fonts.cpp @@ -500,9 +500,10 @@ PRBool gfxOS2Font::SetupCairoFont(gfxContext *aContext) already_AddRefed gfxOS2Font::GetOrMakeFont(const nsAString& aName, const gfxFontStyle *aStyle) { - nsRefPtr font = gfxFontCache::GetCache()->Lookup(aName, aStyle); + nsRefPtr fe = new gfxOS2FontEntry(aName); + nsRefPtr font = + gfxFontCache::GetCache()->Lookup(static_cast(fe), aStyle); if (!font) { - nsRefPtr fe = new gfxOS2FontEntry(aName); font = new gfxOS2Font(fe, aStyle); if (!font) return nsnull;