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:
scc%netscape.com 2000-05-15 00:13:57 +00:00
parent 99b784ae09
commit 1280fd6d46
3 changed files with 6 additions and 6 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}