diff --git a/gfx/thebes/public/gfxPangoFonts.h b/gfx/thebes/public/gfxPangoFonts.h index 32aba7ddb1b6..6bd653f7d658 100644 --- a/gfx/thebes/public/gfxPangoFonts.h +++ b/gfx/thebes/public/gfxPangoFonts.h @@ -73,7 +73,7 @@ public: virtual gfxTextRun *MakeTextRun(const nsAString& aString); virtual gfxTextRun *MakeTextRun(const nsACString& aCString) { - return MakeTextRun(NS_ConvertASCIItoUTF16(aCString)); + return MakeTextRun(*NS_ConvertASCIItoUTF16(aCString)); } gfxPangoFont *GetFontAt(PRInt32 i) { diff --git a/gfx/thebes/src/gfxPangoFonts.cpp b/gfx/thebes/src/gfxPangoFonts.cpp index cbac8e1e6b46..c5a597e8711f 100644 --- a/gfx/thebes/src/gfxPangoFonts.cpp +++ b/gfx/thebes/src/gfxPangoFonts.cpp @@ -168,13 +168,7 @@ gfxPangoFontGroup::~gfxPangoFontGroup() gfxTextRun* gfxPangoFontGroup::MakeTextRun(const nsAString& aString) { - return new gfxPangoTextRun(&aString, this); -} - -gfxTextRun* -gfxPangoFontGroup::MakeTextRun(const nsACString& aString) -{ - return new gfxPangoTextRun(&aString, this); + return new gfxPangoTextRun(*aString, this); } /**