2nd try at appeasing GCC 2.7.2 and thus fix Solaris build bustage, this time using .get()

This commit is contained in:
dmose%netscape.com 2001-08-04 21:13:03 +00:00
Родитель 606561a26f
Коммит bf85eabd23
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -677,10 +677,10 @@ nsresult nsAbDirectoryQuery::matchCardCondition (nsIAbCard* card,
*matchFound = PR_TRUE;
break;
case nsIAbBooleanConditionTypes::Contains:
*matchFound = value.Find (NS_STATIC_CAST(const nsString, matchValue), PR_TRUE) >= 0;
*matchFound = value.Find (matchValue.get(), PR_TRUE) >= 0;
break;
case nsIAbBooleanConditionTypes::DoesNotContain:
*matchFound = value.Find (NS_STATIC_CAST(const nsString, matchValue), PR_TRUE) < 0;
*matchFound = value.Find (matchValue.get(), PR_TRUE) < 0;
break;
case nsIAbBooleanConditionTypes::Is:
*matchFound = value.CompareWithConversion (matchValue, PR_TRUE) == 0;
@ -689,7 +689,7 @@ nsresult nsAbDirectoryQuery::matchCardCondition (nsIAbCard* card,
*matchFound = value.CompareWithConversion (matchValue, PR_TRUE) != 0;
break;
case nsIAbBooleanConditionTypes::BeginsWith:
*matchFound = value.Find (NS_STATIC_CAST(const nsString, matchValue), PR_TRUE) == 0;
*matchFound = value.Find (matchValue.get(), PR_TRUE) == 0;
break;
case nsIAbBooleanConditionTypes::LessThan:
*matchFound = value.CompareWithConversion (matchValue, PR_TRUE) < 0;
@ -708,7 +708,7 @@ nsresult nsAbDirectoryQuery::matchCardCondition (nsIAbCard* card,
break;
}
*matchFound = value.Find (NS_STATIC_CAST(const nsString, matchValue), PR_TRUE, vl - mvl) == (vl - mvl);
*matchFound = value.Find (matchValue.get(), PR_TRUE, vl - mvl) == (vl - mvl);
break;
}
case nsIAbBooleanConditionTypes::SoundsLike: