mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
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:
parent
0255dcb99f
commit
63395b4d88
@ -534,7 +534,7 @@ XPCConvert::JSData2Native(XPCCallContext& ccx, void* d, jsval s,
|
||||
case nsXPTType::T_DOMSTRING:
|
||||
{
|
||||
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(sVoidString, "undefined");
|
||||
|
Loading…
Reference in New Issue
Block a user