Added a new type, |incompatible_char_type| to help build signatures that prevent automatic incorrect promotion from |char| to |PRUnichar|. Kind of a hack, but the right way (specializing |nsAWritable| for |PRUnichar| can't be made to compile everywhere)

This commit is contained in:
scc%netscape.com 2000-04-14 23:19:14 +00:00
Родитель e518706656
Коммит f0e3d7164f
3 изменённых файлов: 9 добавлений и 3 удалений

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

@ -46,6 +46,7 @@ template <class CharT>
struct nsCharTraits
{
typedef CharT char_type;
typedef char incompatible_char_type;
static
void
@ -209,7 +210,8 @@ struct nsCharTraits
NS_SPECIALIZE_TEMPLATE
struct nsCharTraits<char>
{
typedef char char_type;
typedef char char_type;
typedef PRUnichar incompatible_char_type;
static
void

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

@ -46,6 +46,7 @@ template <class CharT>
struct nsCharTraits
{
typedef CharT char_type;
typedef char incompatible_char_type;
static
void
@ -209,7 +210,8 @@ struct nsCharTraits
NS_SPECIALIZE_TEMPLATE
struct nsCharTraits<char>
{
typedef char char_type;
typedef char char_type;
typedef PRUnichar incompatible_char_type;
static
void

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

@ -46,6 +46,7 @@ template <class CharT>
struct nsCharTraits
{
typedef CharT char_type;
typedef char incompatible_char_type;
static
void
@ -209,7 +210,8 @@ struct nsCharTraits
NS_SPECIALIZE_TEMPLATE
struct nsCharTraits<char>
{
typedef char char_type;
typedef char char_type;
typedef PRUnichar incompatible_char_type;
static
void