From 2f3bfe1608007c0ffe67a52f66fd3958d863e74a Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Mon, 15 May 2000 01:27:04 +0000 Subject: [PATCH] With NEW_STRING_APIS, turn on definition of string comparison operators to avoid accidental pointer comparisons. r=scc git-svn-id: svn://10.0.0.236/trunk@69712 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/string/obsolete/nsString.h | 2 +- mozilla/string/obsolete/nsString2.h | 2 +- mozilla/xpcom/ds/nsString.h | 2 +- mozilla/xpcom/ds/nsString2.h | 2 +- mozilla/xpcom/string/obsolete/nsString.h | 2 +- mozilla/xpcom/string/obsolete/nsString2.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/string/obsolete/nsString.h b/mozilla/string/obsolete/nsString.h index ec097d5e541..7752c072204 100644 --- a/mozilla/string/obsolete/nsString.h +++ b/mozilla/string/obsolete/nsString.h @@ -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 diff --git a/mozilla/string/obsolete/nsString2.h b/mozilla/string/obsolete/nsString2.h index 5152ceebe4c..15b7e27379d 100644 --- a/mozilla/string/obsolete/nsString2.h +++ b/mozilla/string/obsolete/nsString2.h @@ -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 diff --git a/mozilla/xpcom/ds/nsString.h b/mozilla/xpcom/ds/nsString.h index ec097d5e541..7752c072204 100644 --- a/mozilla/xpcom/ds/nsString.h +++ b/mozilla/xpcom/ds/nsString.h @@ -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 diff --git a/mozilla/xpcom/ds/nsString2.h b/mozilla/xpcom/ds/nsString2.h index 5152ceebe4c..15b7e27379d 100644 --- a/mozilla/xpcom/ds/nsString2.h +++ b/mozilla/xpcom/ds/nsString2.h @@ -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 diff --git a/mozilla/xpcom/string/obsolete/nsString.h b/mozilla/xpcom/string/obsolete/nsString.h index ec097d5e541..7752c072204 100644 --- a/mozilla/xpcom/string/obsolete/nsString.h +++ b/mozilla/xpcom/string/obsolete/nsString.h @@ -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 diff --git a/mozilla/xpcom/string/obsolete/nsString2.h b/mozilla/xpcom/string/obsolete/nsString2.h index 5152ceebe4c..15b7e27379d 100644 --- a/mozilla/xpcom/string/obsolete/nsString2.h +++ b/mozilla/xpcom/string/obsolete/nsString2.h @@ -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