Bug 835470. Add operator== for char_type. r=bsmedberg

Just a matter of hooking it up to Equals().
QString, std::string, WTFString all have these.

--HG--
extra : rebase_source : b6046c6fafc4224132462cdbf88f8e72e701b333
This commit is contained in:
Jeff Muizelaar 2013-01-29 14:51:46 -05:00
parent b262a21af4
commit 4523940a3b

View File

@ -865,6 +865,13 @@ bool operator==( const nsTSubstring_CharT::base_string_type& lhs, const nsTSubst
return lhs.Equals(rhs);
}
inline
bool operator==( const nsTSubstring_CharT::base_string_type& lhs, const nsTSubstring_CharT::char_type* rhs )
{
return lhs.Equals(rhs);
}
inline
bool operator>=( const nsTSubstring_CharT::base_string_type& lhs, const nsTSubstring_CharT::base_string_type& rhs )
{