Update initialize of nsString, which changed sometime in the last 2 years!
Not part of the build. git-svn-id: svn://10.0.0.236/trunk@159572 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1166,7 +1166,7 @@ PRBool PyXPCOM_InterfaceVariantHelper::FillInVariant(const PythonTypeDescriptor
|
||||
case nsXPTType::T_ASTRING:
|
||||
case nsXPTType::T_DOMSTRING: {
|
||||
if (val==Py_None) {
|
||||
ns_v.val.p = new nsString(nsnull);
|
||||
ns_v.val.p = new nsString();
|
||||
} else {
|
||||
if (!PyString_Check(val) && !PyUnicode_Check(val)) {
|
||||
PyErr_SetString(PyExc_TypeError, "This parameter must be a string or Unicode object");
|
||||
|
||||
Reference in New Issue
Block a user