mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 907728 - use function overloading instead of defaulted arguments for nsTSubstring::Assign; r=jlebar
This commit is contained in:
parent
7e84fb44e4
commit
7e4027ab57
@ -342,8 +342,8 @@ class nsTSubstring_CharT
|
||||
void NS_FASTCALL Assign( char_type c );
|
||||
bool NS_FASTCALL Assign( char_type c, const fallible_t& ) NS_WARN_UNUSED_RESULT;
|
||||
|
||||
void NS_FASTCALL
|
||||
Assign( const char_type* data, size_type length = size_type(-1) );
|
||||
void NS_FASTCALL Assign( const char_type* data );
|
||||
void NS_FASTCALL Assign( const char_type* data, size_type length );
|
||||
bool NS_FASTCALL Assign( const char_type* data, size_type length, const fallible_t& ) NS_WARN_UNUSED_RESULT;
|
||||
|
||||
void NS_FASTCALL Assign( const self_type& );
|
||||
|
@ -285,6 +285,13 @@ nsTSubstring_CharT::Assign( char_type c, const fallible_t& )
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
nsTSubstring_CharT::Assign( const char_type* data )
|
||||
{
|
||||
if (!Assign(data, size_type(-1), fallible_t()))
|
||||
NS_RUNTIMEABORT("OOM");
|
||||
}
|
||||
|
||||
void
|
||||
nsTSubstring_CharT::Assign( const char_type* data, size_type length )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user