Resolve gcc-2.7.2.3 type unification ambiguity for nsAReadableString's Compare() method. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@69519 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user