зеркало из https://github.com/mozilla/pjs.git
Resolve gcc-2.7.2.3 type unification ambiguity for nsAReadableString's Compare() method. NOT PART OF THE BUILD.
This commit is contained in:
Родитель
094635b935
Коммит
a0702b9992
|
@ -1112,7 +1112,7 @@ inline
|
|||
int
|
||||
Compare( const basic_nsAReadableString<CharT>& lhs, const CharT* rhs )
|
||||
{
|
||||
return Compare(lhs, basic_nsLiteralString<CharT>(rhs));
|
||||
return Compare(lhs, NS_STATIC_CAST(const basic_nsAReadableString<CharT>&, basic_nsLiteralString<CharT>(rhs)));
|
||||
}
|
||||
|
||||
template <class CharT>
|
||||
|
@ -1120,7 +1120,7 @@ inline
|
|||
int
|
||||
Compare( const CharT* lhs, const basic_nsAReadableString<CharT>& rhs )
|
||||
{
|
||||
return Compare(basic_nsLiteralString<CharT>(lhs), rhs);
|
||||
return Compare(NS_STATIC_CAST(const basic_nsAReadableString<CharT>&, basic_nsLiteralString<CharT>(lhs)), rhs);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1112,7 +1112,7 @@ inline
|
|||
int
|
||||
Compare( const basic_nsAReadableString<CharT>& lhs, const CharT* rhs )
|
||||
{
|
||||
return Compare(lhs, basic_nsLiteralString<CharT>(rhs));
|
||||
return Compare(lhs, NS_STATIC_CAST(const basic_nsAReadableString<CharT>&, basic_nsLiteralString<CharT>(rhs)));
|
||||
}
|
||||
|
||||
template <class CharT>
|
||||
|
@ -1120,7 +1120,7 @@ inline
|
|||
int
|
||||
Compare( const CharT* lhs, const basic_nsAReadableString<CharT>& rhs )
|
||||
{
|
||||
return Compare(basic_nsLiteralString<CharT>(lhs), rhs);
|
||||
return Compare(NS_STATIC_CAST(const basic_nsAReadableString<CharT>&, basic_nsLiteralString<CharT>(lhs)), rhs);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1112,7 +1112,7 @@ inline
|
|||
int
|
||||
Compare( const basic_nsAReadableString<CharT>& lhs, const CharT* rhs )
|
||||
{
|
||||
return Compare(lhs, basic_nsLiteralString<CharT>(rhs));
|
||||
return Compare(lhs, NS_STATIC_CAST(const basic_nsAReadableString<CharT>&, basic_nsLiteralString<CharT>(rhs)));
|
||||
}
|
||||
|
||||
template <class CharT>
|
||||
|
@ -1120,7 +1120,7 @@ inline
|
|||
int
|
||||
Compare( const CharT* lhs, const basic_nsAReadableString<CharT>& rhs )
|
||||
{
|
||||
return Compare(basic_nsLiteralString<CharT>(lhs), rhs);
|
||||
return Compare(NS_STATIC_CAST(const basic_nsAReadableString<CharT>&, basic_nsLiteralString<CharT>(lhs)), rhs);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче