circular include logic defeated me ... protect the new operator definitions locally

This commit is contained in:
scc%netscape.com 2000-05-15 08:07:25 +00:00
Родитель c912e2e175
Коммит 483586e820
6 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -865,7 +865,10 @@ public:
#if 0//def NEW_STRING_APIS #if 0//def NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsCAutoString, char) NS_DEF_STRING_COMPARISON_OPERATORS(nsCAutoString, char)
#endif #endif
#ifdef NEW_STRING_APIS
NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsCAutoString, char) NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsCAutoString, char)
#endif
/*************************************************************** /***************************************************************
The subsumestr class is very unusual. The subsumestr class is very unusual.

Просмотреть файл

@ -952,7 +952,9 @@ public:
char mBuffer[kDefaultStringSize<<eTwoByte]; char mBuffer[kDefaultStringSize<<eTwoByte];
}; };
#ifdef NEW_STRING_APIS
NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsAutoString, PRUnichar) NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsAutoString, PRUnichar)
#endif
class NS_COM NS_ConvertASCIItoUCS2 class NS_COM NS_ConvertASCIItoUCS2
: public nsAutoString : public nsAutoString

Просмотреть файл

@ -865,7 +865,10 @@ public:
#if 0//def NEW_STRING_APIS #if 0//def NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsCAutoString, char) NS_DEF_STRING_COMPARISON_OPERATORS(nsCAutoString, char)
#endif #endif
#ifdef NEW_STRING_APIS
NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsCAutoString, char) NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsCAutoString, char)
#endif
/*************************************************************** /***************************************************************
The subsumestr class is very unusual. The subsumestr class is very unusual.

Просмотреть файл

@ -952,7 +952,9 @@ public:
char mBuffer[kDefaultStringSize<<eTwoByte]; char mBuffer[kDefaultStringSize<<eTwoByte];
}; };
#ifdef NEW_STRING_APIS
NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsAutoString, PRUnichar) NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsAutoString, PRUnichar)
#endif
class NS_COM NS_ConvertASCIItoUCS2 class NS_COM NS_ConvertASCIItoUCS2
: public nsAutoString : public nsAutoString

Просмотреть файл

@ -865,7 +865,10 @@ public:
#if 0//def NEW_STRING_APIS #if 0//def NEW_STRING_APIS
NS_DEF_STRING_COMPARISON_OPERATORS(nsCAutoString, char) NS_DEF_STRING_COMPARISON_OPERATORS(nsCAutoString, char)
#endif #endif
#ifdef NEW_STRING_APIS
NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsCAutoString, char) NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsCAutoString, char)
#endif
/*************************************************************** /***************************************************************
The subsumestr class is very unusual. The subsumestr class is very unusual.

Просмотреть файл

@ -952,7 +952,9 @@ public:
char mBuffer[kDefaultStringSize<<eTwoByte]; char mBuffer[kDefaultStringSize<<eTwoByte];
}; };
#ifdef NEW_STRING_APIS
NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsAutoString, PRUnichar) NS_DEF_DERIVED_STRING_OPERATOR_PLUS(nsAutoString, PRUnichar)
#endif
class NS_COM NS_ConvertASCIItoUCS2 class NS_COM NS_ConvertASCIItoUCS2
: public nsAutoString : public nsAutoString