mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
commented out an |NS_WARNING| that will overwhelm you, I'll turn it into an assertion for me only, later. Also got rid of |Equals(*, int)| temporarily, as with |Compare| to catch clients who should be using |EqualsWithConversion|
This commit is contained in:
parent
99b784ae09
commit
1280fd6d46
@ -297,7 +297,7 @@ class basic_nsAReadableString
|
||||
// |Equals()| is a synonym for |Compare()|
|
||||
PRBool Equals( const basic_nsAReadableString<CharT>& rhs ) const;
|
||||
PRBool Equals( const CharT* ) const;
|
||||
PRBool Equals( const CharT*, PRUint32 ) const;
|
||||
// PRBool Equals( const CharT*, PRUint32 ) const;
|
||||
// PRBool Equals( CharT ) const;
|
||||
|
||||
// Comparison operators are all synonyms for |Compare()|
|
||||
@ -655,7 +655,7 @@ class basic_nsLiteralString
|
||||
// constructor if they don't really know the length.
|
||||
if ( aLength == PRUint32(-1) )
|
||||
{
|
||||
NS_WARNING("Tell scc: Caller constructing a string doesn't know the real length. Please use the other constructor.");
|
||||
// NS_WARNING("Tell scc: Caller constructing a string doesn't know the real length. Please use the other constructor.");
|
||||
mEnd = mStart + nsCharTraits<CharT>::length(mStart);
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ class basic_nsAReadableString
|
||||
// |Equals()| is a synonym for |Compare()|
|
||||
PRBool Equals( const basic_nsAReadableString<CharT>& rhs ) const;
|
||||
PRBool Equals( const CharT* ) const;
|
||||
PRBool Equals( const CharT*, PRUint32 ) const;
|
||||
// PRBool Equals( const CharT*, PRUint32 ) const;
|
||||
// PRBool Equals( CharT ) const;
|
||||
|
||||
// Comparison operators are all synonyms for |Compare()|
|
||||
@ -655,7 +655,7 @@ class basic_nsLiteralString
|
||||
// constructor if they don't really know the length.
|
||||
if ( aLength == PRUint32(-1) )
|
||||
{
|
||||
NS_WARNING("Tell scc: Caller constructing a string doesn't know the real length. Please use the other constructor.");
|
||||
// NS_WARNING("Tell scc: Caller constructing a string doesn't know the real length. Please use the other constructor.");
|
||||
mEnd = mStart + nsCharTraits<CharT>::length(mStart);
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ class basic_nsAReadableString
|
||||
// |Equals()| is a synonym for |Compare()|
|
||||
PRBool Equals( const basic_nsAReadableString<CharT>& rhs ) const;
|
||||
PRBool Equals( const CharT* ) const;
|
||||
PRBool Equals( const CharT*, PRUint32 ) const;
|
||||
// PRBool Equals( const CharT*, PRUint32 ) const;
|
||||
// PRBool Equals( CharT ) const;
|
||||
|
||||
// Comparison operators are all synonyms for |Compare()|
|
||||
@ -655,7 +655,7 @@ class basic_nsLiteralString
|
||||
// constructor if they don't really know the length.
|
||||
if ( aLength == PRUint32(-1) )
|
||||
{
|
||||
NS_WARNING("Tell scc: Caller constructing a string doesn't know the real length. Please use the other constructor.");
|
||||
// NS_WARNING("Tell scc: Caller constructing a string doesn't know the real length. Please use the other constructor.");
|
||||
mEnd = mStart + nsCharTraits<CharT>::length(mStart);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user