зеркало из https://github.com/mozilla/pjs.git
better fix for OS/2 bustage
This commit is contained in:
Родитель
153cadb85b
Коммит
89a6f9d6ae
|
@ -1944,12 +1944,12 @@ CompareFontNames(const void* aArg1, const void* aArg2, void* aClosure)
|
||||||
if( str1.First() == PRUnichar('@') )
|
if( str1.First() == PRUnichar('@') )
|
||||||
{
|
{
|
||||||
if( str2.First() == PRUnichar('@') )
|
if( str2.First() == PRUnichar('@') )
|
||||||
return str1.CompareWithConversion( str2 );
|
return Compare( str1, str2, nsCaseInsensitiveStringComparator() );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nsString temp( str1 );
|
nsString temp( str1 );
|
||||||
temp.Trim( "@", PR_TRUE, PR_FALSE );
|
temp.Trim( "@", PR_TRUE, PR_FALSE );
|
||||||
int rv = temp.Equals( str2, nsCaseInsensitiveStringComparator() );
|
int rv = Compare( temp, str2, nsCaseInsensitiveStringComparator() );
|
||||||
if( rv == 0 )
|
if( rv == 0 )
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
|
@ -1960,14 +1960,14 @@ CompareFontNames(const void* aArg1, const void* aArg2, void* aClosure)
|
||||||
{
|
{
|
||||||
nsString temp( str2 );
|
nsString temp( str2 );
|
||||||
temp.Trim( "@", PR_TRUE, PR_FALSE );
|
temp.Trim( "@", PR_TRUE, PR_FALSE );
|
||||||
int rv = str2.Equals( temp, nsCaseInsensitiveStringComparator() );
|
int rv = Compare( str1, temp, nsCaseInsensitiveStringComparator() );
|
||||||
if( rv == 0 )
|
if( rv == 0 )
|
||||||
return -1;
|
return -1;
|
||||||
else
|
else
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return str2.Equals( str2, nsCaseInsensitiveStringComparator() );
|
return Compare( str1, str2, nsCaseInsensitiveStringComparator() );
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче