зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0255dcb99f
Коммит
63395b4d88
|
@ -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");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче