Fixing AIX/BeOS bustage. The statically determined length of the string was |0|, and on these ports, that was erroneously considered a candidate for conversion to a pointer, which made selection of the appropriate constructor for |nsDependentString| ambiguous ... go figure.

This commit is contained in:
scc%mozilla.org 2001-05-22 08:02:58 +00:00
Родитель 0255dcb99f
Коммит 63395b4d88
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -534,7 +534,7 @@ XPCConvert::JSData2Native(XPCCallContext& ccx, void* d, jsval s,
case nsXPTType::T_DOMSTRING: case nsXPTType::T_DOMSTRING:
{ {
static const PRUnichar sEmptyStringTerminator = 0; static const PRUnichar sEmptyStringTerminator = 0;
static const nsDependentString sEmptyString(&sEmptyStringTerminator, 0); static const nsDependentString sEmptyString(&sEmptyStringTerminator, &sEmptyStringTerminator);
static const NS_NAMED_LITERAL_STRING(sNullString, "null"); static const NS_NAMED_LITERAL_STRING(sNullString, "null");
static const NS_NAMED_LITERAL_STRING(sVoidString, "undefined"); static const NS_NAMED_LITERAL_STRING(sVoidString, "undefined");