With NEW_STRING_APIS, turn on definition of string comparison operators to avoid accidental pointer comparisons. r=scc

This commit is contained in:
waterson%netscape.com 2000-05-15 01:27:04 +00:00
parent 65d9af3691
commit 58fe0403d8
6 changed files with 6 additions and 6 deletions

View File

@ -793,7 +793,7 @@ private:
void InsertWithConversion( char, PRUint32 );
};
#if 0//def NEW_STRING_APIS
#ifdef NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsCString, char)
#endif

View File

@ -887,7 +887,7 @@ private:
void InsertWithConversion( const PRUnichar*, PRUint32, PRInt32=-1 );
};
#if 0//def NEW_STRING_APIS
#ifdef NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsString, PRUnichar)
#endif

View File

@ -793,7 +793,7 @@ private:
void InsertWithConversion( char, PRUint32 );
};
#if 0//def NEW_STRING_APIS
#ifdef NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsCString, char)
#endif

View File

@ -887,7 +887,7 @@ private:
void InsertWithConversion( const PRUnichar*, PRUint32, PRInt32=-1 );
};
#if 0//def NEW_STRING_APIS
#ifdef NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsString, PRUnichar)
#endif

View File

@ -793,7 +793,7 @@ private:
void InsertWithConversion( char, PRUint32 );
};
#if 0//def NEW_STRING_APIS
#ifdef NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsCString, char)
#endif

View File

@ -887,7 +887,7 @@ private:
void InsertWithConversion( const PRUnichar*, PRUint32, PRInt32=-1 );
};
#if 0//def NEW_STRING_APIS
#ifdef NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsString, PRUnichar)
#endif