mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
With NEW_STRING_APIS, turn on definition of string comparison operators to avoid accidental pointer comparisons. r=scc
This commit is contained in:
parent
65d9af3691
commit
58fe0403d8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user