Fix build bustage. OS/2 and Sun Workshop won't do implicit type

conversions (like .get() on an nsCOMPtr) while trying to match a
template, apparently...  r=cls
This commit is contained in:
bzbarsky%mit.edu 2002-10-09 04:51:59 +00:00
Родитель a5c0b29e24
Коммит 09fe043cd1
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -2386,7 +2386,10 @@ nsCSSRendering::FindNonTransparentBackground(nsIStyleContext* aContext,
NS_ASSERTION(context, "Cannot find NonTransparentBackground in a null context" );
while (context) {
::GetStyleData(context, &result);
// Have to .get() because some compilers won't match the template
// otherwise (they don't look for implicit type conversions while doing
// template matching?).
::GetStyleData(context.get(), &result);
if (0 == (result->mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT))
break;

Просмотреть файл

@ -2386,7 +2386,10 @@ nsCSSRendering::FindNonTransparentBackground(nsIStyleContext* aContext,
NS_ASSERTION(context, "Cannot find NonTransparentBackground in a null context" );
while (context) {
::GetStyleData(context, &result);
// Have to .get() because some compilers won't match the template
// otherwise (they don't look for implicit type conversions while doing
// template matching?).
::GetStyleData(context.get(), &result);
if (0 == (result->mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT))
break;