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 c63392f22e
commit 586bc5642a

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 )
{