From 0a6ff9c033ac88cedbc35ae7dce375d918eb8deb Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 10 Feb 2006 22:48:42 +0000 Subject: [PATCH] changes for Carbon r=pchen/a=sfraser. bug# 42100 --- widget/src/mac/nsDeviceContextMac.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/src/mac/nsDeviceContextMac.cpp b/widget/src/mac/nsDeviceContextMac.cpp index aa761396096c..0cd736d6d3fa 100644 --- a/widget/src/mac/nsDeviceContextMac.cpp +++ b/widget/src/mac/nsDeviceContextMac.cpp @@ -864,7 +864,8 @@ void nsDeviceContextMac :: InitFontInfoList() (TextPtr)unicodeFontName , sizeof(unicodeFontName), &actualOutputLength); unicodeFontName[actualOutputLength / sizeof(PRUnichar)] = '\0'; - FontNameKey key(unicodeFontName); + nsAutoString temp(unicodeFontName); + FontNameKey key(temp); gFontInfoList->Put(&key, (void*)fontFamily); } if (converter)